Posted By

chrisaiv on 09/20/08


Tagged

python feedparser


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

atr000
gartenstuhl


Python: Basic Feedparser example for Os X.5


 / Published in: Python
 

Using terminal, download feedparser, you can specify a specific version if preferred: sudo easy_install "feedparser==4.1"

Once installed, create a new pythonFile.py and paste this code and Run

  1. import feedparser
  2.  
  3. d = feedparser.parse("http://feeds.delicious.com/v2/rss/twelvetone")
  4. print d['feed']['title']
  5. print d.feed.title
  6. print d.feed.link
  7.  
  8. print d['items'][1].title

Report this snippet  

You need to login to post a comment.