Atom 1.0 Support for FeedParser (Patch)

Update: It seems that this patch is OBSOLETED as Universal Feed Parser is now supporting Atom 1.0 natively from version 4.0 onwards.

I wrote about rakaz's article on migrating from Atom 0.3 to 1.0, and requested the Atom 1.0 support for Python's universal feedparser. I submitted the feature request on SourceForge, but then realised Mark has not updated this excellent Python library for more than a year!

The beauty of FOSS is that "we can fix it!" if you don't mind getting your hands dirty. Instead of waiting for someone to do it, I think I will give it a try hacking it up, so I can continue getting my daughter's blog listed on FOCUSer.net's feed aggregator.

Download

Note: It took me around an hour to get it working, and the only reference I have read was rakaz's conversion guide -- so consider it a beta quality patch. Works for TextPattern 4's Atom 1.0 feed, but I have not tested it on anything else.

Usage

The patch is made against feedparser 3.3 released on 15 July 2004. If you are not sure how to patch the source code, just download the patched feedparser.py and replace the one in the zip file.