rss

What RSS parser should I use in PHP?

半世苍凉 提交于 2019-11-27 16:11:13
I am searching an RSS parser written in PHP. The problem is not that I cannot find one. The problem is that there are too many and it's hard to decide which one to use (especially when I have no experience with them and to try them is too time consuming). Can anybody recommend me a "good" RSS parser? The following requirements are important to me (given in order of importance): It's able to extract all information given in the feed (not only title, description and link but everything what is there, for example feeds author, feeds icon, items tags and so on). It should be able to read not only

Problem sorting RSS feed by date using XSL

白昼怎懂夜的黑 提交于 2019-11-27 15:20:15
问题 I'm creating a website where I need to show the top 5 records from an RSS feed, and these need to be sorted by date and time. The date fields in the RSS feed are in the following format: "Mon, 16 Feb 2009 16:02:44 GMT" I'm having big problems getting the records to sort correctly - I've tried lots of different code examples I've seen, but none seem to sort the records correctly. The code for my XSL sheet is shown below, and the feed in question is here. Very grateful for anyones help!!!

SelectNodes not working on stackoverflow feed

别来无恙 提交于 2019-11-27 15:02:46
I'm trying to add support for stackoverflow feeds in my rss reader but SelectNodes and SelectSingleNode have no effect. This is probably something to do with ATOM and xml namespaces that I just don't understand yet. I have gotten it to work by removing all attributes from the feed tag, but that's a hack and I would like to do it properly. So, how do you use SelectNodes with atom feeds? Here's a snippet of the feed. <?xml version="1.0" encoding="utf-8"?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:thr="http://purl

java library for reading RSS and ATOM feeds [duplicate]

偶尔善良 提交于 2019-11-27 14:24:34
问题 This question already has an answer here : How to write an RSS feed with Java? (1 answer) Closed 4 years ago . I am looking for libraries which can read RSS / ATOM feeds in my J2EE application (based on JBoss Seam). Is Rome the only application there for reading feeds? I am assuming the Seam RSS integration is only for generating RSS feeds and not for reading feeds. 回答1: Have you had a look into the following list? http://java-source.net/open-source/rss-rdf-tools Even though it has been

How to replace the text of a node using DOMDocument

半世苍凉 提交于 2019-11-27 14:17:54
This is my code that loads an existing XML file or string into a DOMDocument object: $doc = new DOMDocument(); $doc->formatOutput = true; // the content actually comes from an external file $doc->loadXML('<rss version="2.0"> <channel> <title></title> <description></description> <link></link> </channel> </rss>'); $doc->getElementsByTagName("title")->item(0)->appendChild($doc->createTextNode($titleText)); $doc->getElementsByTagName("description")->item(0)->appendChild($doc->createTextNode($descriptionText)); $doc->getElementsByTagName("link")->item(0)->appendChild($doc->createTextNode($linkText)

How to auto log into gmail atom feed with Python?

孤街醉人 提交于 2019-11-27 13:27:22
问题 Gmail has this sweet thing going on to get an atom feed: def gmail_url(user, pwd): return "https://"+str(user)+":"+str(pwd)+"@gmail.google.com/gmail/feed/atom" Now when you do this in a browser, it authenticates and forwards you. But in Python, at least what I'm trying, isn't working right. url = gmail_url(settings.USER, settings.PASS) print url opener = urllib.FancyURLopener() f = opener.open(url) print f.read() Instead of forwarding correctly, it's doing this: >>> https://user:pass@gmail

How large RSS reader works (netvibes, Google reader…)

旧巷老猫 提交于 2019-11-27 11:08:52
I wonder how web applications like Google Reader, Blogline, techronati works, and what technics they follow to parse millions of RSS feeds using cron job at one time? There is a lot of different techniques... the "worst" one being the one that you describe. (time based polling). The first thing you need to consider is that they may not all do the parsing on the server side. For example, I know that Netvibes was doing the parsing on the client side (but cached the content on the server), so it saved them a lot of resources. This way they would poll feeds only when users asked from them, so

get the latest podcasts from itunes store with link by RSS, JSON or something

倖福魔咒の 提交于 2019-11-27 11:01:13
问题 i'm trying to get the latest podcast informations out of "itunes store" to work with this data in several applications (iphone app and web app). Is there a way to get this informations? RSS, JSON or something? i want to work with this informations in objective-c and on a website with php or js. Is my question clear? :( //edit: anything unclear? leave a comment, if yes 回答1: Based on your question, I just tried to find a way to do this. So you'll need the podcast ID (should be obvious from the

Problems Reading RSS with C# and .net 3.5

孤人 提交于 2019-11-27 10:57:16
问题 I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception: An error was encountered when parsing a DateTime value in the XML. This seems to occur whenever the RSS feed expresses the publish date in the following format: Thu, 16 Oct 08 14:23:26 -0700 If the feed expresses the publish date as GMT, things

Reading non-standard elements in a SyndicationItem with SyndicationFeed

点点圈 提交于 2019-11-27 10:57:00
With .net 3.5, there is a SyndicationFeed that will load in a RSS feed and allow you to run LINQ on it. Here is an example of the RSS that I am loading: <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <title>Title of RSS feed</title> <link>http://www.google.com</link> <description>Details about the feed</description> <pubDate>Mon, 24 Nov 08 21:44:21 -0500</pubDate> <language>en</language> <item> <title>Article 1</title> <description><![CDATA[How to use StackOverflow.com]]></description> <link>http://youtube.com/?v=y6_-cLWwEU0</link> <media:player url="http://youtube