Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python 3.1 RSS Parser?

Anyone know of a good feed parser for python 3.1? I was using feedparser for 2.5 but it doesn't seem to be ported to 3.1 yet, and it's apparently more complicated than just running 2to3.py on it. Any help?

like image 296
matthew Avatar asked Oct 06 '09 18:10

matthew


3 Answers

You may take a look at the Atom Models blog post by Ian Bicking. He proposes not to use any special "feed parsing" library because Atom and RSS are just XML so your model is really an XML tree, not some fancy class. You could try his code under Python 3.

like image 112
Andrey Vlasovskikh Avatar answered Oct 06 '22 10:10

Andrey Vlasovskikh


feedparser is now available for Python 2.4 up to 3.3- https://code.google.com/p/feedparser/

like image 28
wodow Avatar answered Oct 06 '22 10:10

wodow


I've been working on porting feedparser to Python 3, and I've published a feedparser/Python 3 development branch at GitHub with the results of that work so far.

There is also an open bug report about porting feedparser to Python 3, but since I'm a new user at StackOverflow, I'm currently limited to just a single link. You'll find the link to the bug report at the top of the GitHub page (it links to code.google.com).

like image 37
Kurt McKee Avatar answered Oct 06 '22 11:10

Kurt McKee