News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Ben Ramsey's Blog:
Generating OPML From del.icio.us (And Getting All Your Links)
May 08, 2006 @ 06:28:05

Ben Ramsey, looking for a way to more efficiently manage his list of sites he reads (the OPML list), has discovered a way to get around the 30 item limit that the del.icio.us restricts a user to (thus only 30 items on the OPML list) through the use of the site's own API.

I investigated a way to get around the 30-feed limitation in del.icio.us, and I found that their API allows you to do just this, albeit with a few restrictions of its own, which I'll explain in a few moments. Using the del.icio.us API, instead of their RSS feeds, I was able to use the following code to first check whether my del.icio.us account has been updated since I last cached their data, and, if so, to grab all of the links for a particular tag and cache the data to a file for later use:

The code is simple and uses the SimpleXML PHP functionality to grab all of the items tagged with "blogroll" and parse through them, echoing them back out as simple links (to a "blogroll" section on a site). He has the script firing nightly, regenerating the OPML file each time, making it simple to automatically keep his list up-to-date while only having to update in one place.

0 comments voice your opinion now!
del.icio.us opml blogroll generation simplexml del.icio.us opml blogroll generation simplexml


blog comments powered by Disqus

Similar Posts

Stoyan Stefanov's Blog: Really simple Really Simple Syndication syndication

PHP Magazine: Latest Issue Released - February 2006

PHPBuilder.com: Using XML - A PHP Developer\'s Primer

DevShed: Searching and Replacing Nodes with SimpleXML in PHP 5 (Part 3)

WebMonkey: A Truly del.icio.us API


Community Events





Don't see your event here?
Let us know!


application symfony introduction install podcast composer opinion security voicesoftheelephpant interview laravel language version series library release tool package community framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework