I'm making a little webapp with some fixed feeds (fixed as in, you can't add feeds like in Feedly or Google Reader)
I tried this, with no luck
RSS_URLS = [
'http://feeds.feedburner.com/RockPaperShotgun',
'http://www.gameinformer.com/b/MainFeed.aspx?Tags=preview',
]
feed = feedparser.parse(RSS_URLS)
for post in feed.entries:
print post.title
And this, with no luck
RSS_URLS = [
'http://feeds.feedburner.com/RockPaperShotgun',
'http://www.gameinformer.com/b/MainFeed.aspx?Tags=preview',
]
feed = []
for url in RSS_URLS:
feed.append(feedparser.parse(url))
for post in feed.entries:
print post.title
Your second approach is OK, but as you append the feeds into a list, you also will get a list of feeds of entries, thus:
or to make a flat list of all posts,
extend
the list with the list of new entries from each url: