Saturday, May 09, 2009

fun with python: feedparser

I try to play around with podcast feeds, actually was hoping to generate the link for me to download the media from podcast.

Either way I found this open source library. Which is fun to use.

http://www.feedparser.org/

I just skip the installation step, you can get it from the repository if you're a linux user.

To use the universal feed parser, in the shell
>>>import feedparser
>>>d=feedparser.parse("source of rss")

what you get is a dictionary of data from the rss. More on how to use it here
http://www.feedparser.org/docs/



1 comment:

  1. damn..hard to understand!!

    wish me luck for Ubuntu Certify Trainer!!

    ReplyDelete