Related Entries

India PyCon 2009
Quick wallpaper changer
Load testing with Grinder
Adding namespace to XML
Opera RSS to OPML

« Dell server for $239
» ZPUGDC - YAML and Python 2.3

Quick and dirty news aggregator

Don't I have anything better to do on a Friday (mid)night?

News aggregators are dime-a-dozen. I wanted to program something very simple using Python. Here’s my humble effort.

If you don’t have time to read the long text below, you can either jump to the code or see demo.

Get the RDF, parse it, save each item as a file in a folder. File names are unique, based on permalinks. If the entry date is available, then the file’s modified date is set to that. Then, in one shot, get a listing of files sorted in the reverse order of modified date and print it as an HTML page.
Works reasonably well enough for me. Absolutely needs to revisit this to make it usable for others. I thought I’ll put the code here, if someone wants to experiment with it. Please see the TODO list in the code.
  1. Wow, neat! Are you publishing this under a particular license?

    Posted by: Mark Paschal on December 1, 2002 11:41 PM
  2. Not any particular license. Use the code as you see fit, but just don't send any lawyers after me :-)

    Posted by: Babu on December 2, 2002 05:51 AM