Aug-03-2018, 07:31 PM
(Aug-03-2018, 07:23 PM)Vysero Wrote: That's okay I am complexly inexperienced with the feedparser class. You might try something like this:
RSS_URLS = [ 'https://feed1.rss', 'https://feed2.rss', ] feeds = [] for url in RSS_URLS: feeds.append(feedparser.parse(url)) for feed in feeds: for post in feed.entries: print(post.title) #or whatever logic you need to use
This prints all RSS items, I just want the last one.
For post in feed.entries = 1 to 1 ?