rss

parsing xml using jquery and ajax

有些话、适合烂在心里 提交于 2019-11-28 04:55:37
问题 I have an rss feed for my podcast and essentially what I am trying to do is populate an html5 audio player with URLs within the RSS feed. I figure the best way to go about this is to parse the links using ajax and then append them into the src of the audio player. I am aware of the same domain policy that would prevent me doing this with ajax, so I am using the cross domain ajax plugin (http://bit.ly/Jbi9iX) to get around this. I am struggling to figure out exactly why the code below is not

How Do I Fetch All Old Items on an RSS Feed?

不问归期 提交于 2019-11-28 02:44:35
I've been experimenting with writing my own RSS reader. I can handle the "parse XML" bit. The thing I'm getting stuck on is "How do I fetch older posts?" Most RSS feeds only list the 10-25 most recent items in their XML file. How do I get ALL the items in a feed, and not just the most recent ones? The only solution I could find was using the "unofficial" Google Reader API, which would be something like http://www.google.com/reader/atom/feed/http://fskrealityguide.blogspot.com/feeds/posts/default?n=1000 I don't want to make my application dependent on Google Reader. Is there any better way? I

craigslist rss feed

痴心易碎 提交于 2019-11-28 02:19:46
问题 I'm trying to parse the data from a craigslist rss feed. This is the feed url - http://www.craigslist.org/about/best/all/index.rss I'm using jfeed and my code is given below jQuery(function() { jQuery.getFeed({ url: 'proxy.php?url=http://www.craigslist.org/about/best/all/index.rss', success: function(feed) { jQuery('#result').append('<h2>' + feed.title + '</h2>'); } }); }); However, I don't get the feed title displayed or any other property of the feed. If i just try to print out the feed to

Google Feed Loader API ignoring XML attributes

…衆ロ難τιáo~ 提交于 2019-11-28 02:05:40
问题 Google's feed loader appears to be ignoring attributes when converting to JSON. I'm using jQuery to grab a feed via AJAX. The actual RSS XML feed can be seen here, and the response from the AJAX call can be seen here. I need to access the url attribute of the <enclosure> tags, but neither appear in the response. For reference, the code I am using is: function getFeed(url) { url = 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=10&callback=?&q=' + encodeURIComponent(url); $.ajax(

Error tolerant XML reader

a 夏天 提交于 2019-11-28 01:59:16
问题 Does anyone have/make/sell an error tolerant XML reader for .NET? Yeah, I know, XML isn't designed to have errors in it and should be rejected if it's not valid .. blah blah. But sadly the real-world is imperfect and developers do make mistakes and I still want to be able to read their feeds even if I'm missing the odd element here or there because it wasn't encoded properly or had some other error in it. So please, no answers "fix the source" or "reject it". So, does anyone have a component

how to check if rtmp or hls urls are exist or they'll give 404 error in swift

我是研究僧i 提交于 2019-11-28 01:45:51
问题 I need to parse some data from rss and open related links from parsed rss in swift 2, for example i want to check this link is valid or not: rtmp://185.23.131.187:1935/live/jomhori1 or this one : http://185.23.131.25/hls-live/livepkgr/_defint_/liveevent/livestream.m3u8 My code to check the validation of the url : let urlPath: String = "http://185.23.131.25/hls-live/livepkgr/_defint_/liveevent/livestream.m3u8" let url: NSURL = NSURL(string: urlPath)! let request: NSURLRequest = NSURLRequest

PHP's SimpleXML: How to use colons in names

﹥>﹥吖頭↗ 提交于 2019-11-27 22:56:35
I am trying to generate an RSS Google Merchant, using SimpleXML. The sample given by Google is: <?xml version="1.0"?> <rss version="2.0" xmlns:g="http://base.google.com/ns/1.0"> <channel> <title>The name of your data feed</title> <link>http://www.example.com</link> <description>A description of your content</description> <item> <title>Red wool sweater</title> <link> http://www.example.com/item1-info-page.html</link> <description>Comfortable and soft, this sweater will keep you warm on those cold winter nights.</description> <g:image_link>http://www.example.com/image1.jpg</g:image_link> <g

Create RSS feed in MVC4/WebAPI

人走茶凉 提交于 2019-11-27 18:42:29
问题 I'm looking for the best way to create an RSS feed via MVC4 (and/or WebAPI). This post seemed the most applicable http://www.strathweb.com/2012/04/rss-atom-mediatypeformatter-for-asp-net-webapi/. But it was written in the pre-Release days of WebAPI. I've used Nuget to bring all packages up-to-date but attempting to build the project tosses: Error 2 The type or namespace name 'FormatterContext' could not be found (are you missing a using directive or an assembly reference?) G:\Code

Parse RSS pubDate to Date object in java

笑着哭i 提交于 2019-11-27 18:20:52
How can I parse a pubDate from a RSS feed to a Date object in java. The format in the RSS feed: Sat, 24 Apr 2010 14:01:00 GMT What I have at the moment: DateFormat dateFormat = DateFormat.getInstance(); Date pubDate = dateFormat.parse(item.getPubDate().getText()); But this code throws an ParseException with the message Unparseable date You can define the date format you are trying to parse, using the class SimpleDateFormat : DateFormat formatter = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz"); Date date = formatter.parse("Sat, 24 Apr 2010 14:01:00 GMT"); Additionally, for non-English

Setting up an Github Commit RSS feed

半城伤御伤魂 提交于 2019-11-27 16:41:41
I am trying to have my github commits as an RSS feed but so far I have not managed to figure it out. I know that a private feed is available with the following syntax: https://github.com/username.atom?token=token But this the users activity feed. I would like a commit feed of one of my projects. Thanks in advance! Perfect, thank you!! this was the final syntax: https://github.com/username/repository_name/commits/branch_name.atom?login=login&token=token. Still cant view commits on all branches though. You want https://github.com/whatever/commits/master.atom , like for the Cloudera flume