Quantcast
Channel: Python Print only latest RSS feed items - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Python Print only latest RSS feed items

$
0
0

I'm using following code to get the items of an RSS feed. Unfortunately I'm not able to get only the latest three items.

import feedparserfeed = feedparser.parse('http://www.macstories.net/feed/')for e in feed['entries']:        print e.get('title','')        print 

Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images