RSS LogoMany applications make use of the information contained in RSS and ATOM feeds. Some are starting to adopt OPML(Outline Processor Markup Language) to organize their site’s many feeds into a single, manageable file.

A few days ago, we posted a PHP class that allowed users to scrape a Webpage, looking for RSS feeds. Although pretty useful, the class was somewhat limited in functionality, since it left out ATOM feeds, which are increasingly used by webmasters to publish their site news.

This new version expands the feature set of the class by including ATOM feeds and OPML outlines in the scraped link set. This way, these links can be fetched (using cURL, for instance) and displayed on a site or stored in a database for later retrieval.

You can download the code for this class here. The ZIP package contains the fully documented class source code, as well as a simple example to illustrate how to use the class. This class is featured in Freshmeat and PHPClasses.org


Incoming Links (via Tecnorati):
Nothing Reported

Tags: .NET, Code, Content, Content Scraping, cURL, HTML, Links, News, PHP, PHP Classes, Process, regular expressions, RSS, Sample Code, Wordpress, ZIP