Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RSS screen scraper

Tags:

python

rss

Can anyone point me towards a ready made RSS screen scraper, preferably in Python in order to get full text RSS feeds?

like image 409
James Wanchai Avatar asked Oct 28 '25 05:10

James Wanchai


2 Answers

There's a good list of them here, which mentions Feed Parser, which you use like this:

import feedparser

python_wiki_rss_url = "http://www.python.org/cgi-bin/moinmoin/" \
                      "RecentChanges?action=rss_rc"

feed = feedparser.parse( python_wiki_rss_url )

You can then do things like:

for item in feed["items"]:
    print item["title"]
like image 93
Dominic Rodger Avatar answered Oct 30 '25 21:10

Dominic Rodger


feedparser.org is great

like image 40
YOU Avatar answered Oct 30 '25 22:10

YOU