PHP: RSS and Atom Feed ReaderRSS and Atom feeds are one of the new 'big things' of the Internet of the 21st century. The idea is that you set up a data-file containing a list of news items, articles, or basically anything, and people around the world "subscribe" using one of the multitude of 'news aggregators'. The PHP XML library makes it relatively simple to parse a single feed, but more complicated when you have to deal with all the different formats in a single script. Use the form below to select a feed and run it through our parser. Note that most feeds are free to access for personal use, but if you want to use them for a commercial site or application you might have to pay the provider. The source code for extracting information from RSS (or Atom) Feeds can be downloaded by following links at the bottom of the page. It will download a feed and convert it to HTML. The advantage of using PHP over JavaScript is that the feed content can now be cached and indexed by search engines. This is a work in progress so any feedback is welcome. The scripts for reading RSS and Atom feeds are currently independent but could be combined relatively easily. You will notice that the options above contain both RSS- and Atom-formatted feeds. Related Articles
References
Feedback and Questions7 February 2008: Amit Sood says: The examples you've given are great and do EXACTLY what i'm looking for, only problem is i'm a complete noob at all of this and everytime i try to make my own convertor, i only get a page with the code on it! It sounds like your script isn't being parsed with PHP. Try first to get the simple phpinfo function to run before trying other PHP code. 19 March 2008: Pascal says: I would like to know if it's possible to extract on youtube rss feed. You should be able to display your RSS feed from YouTube using our RSS Feed Reader. It worked fine for me in testing with the URL you provided. |
|
|
© Copyright 2010 Chirp Internet
- Page Last Modified: 22 November 2009
|
|