RSS parsing with batteries included
superss ====== RSS parsing with batteries included
feedparser is great, but sometimes it doesn’t put things in the same place. superss fixes this by finding all known candidates for urls, content, images, tags, dates, and authors and intelligently picking the best candidate. It also does some other cool things like author parsing with lauteur, url reconciliation with siegfried, and pulling links and images out of the article html.
Another problem with RSS parsing is that feeds sometimes only include a summary of the article. superss can also extract the article’s full text from the page itself with particle and merge this data with the data from the RSS feed.
pip install superss
Requires nose. (only currently tests full_text rss feeds.)
Grab full-text feeds:
from superss import SupeRSS s = SupeRSS('http://feeds.feedburner.com/publici_rss') for entry in s.run(): print entry
Grab non-full-text feeds. You must install particle to run this.
from superss import SupeRSS s = SupeRSS('http://feeds.feedburner.com/publici_rss', is_full_text = False) for entry in s.run(): print entry
from superss import SupeRSS s = SupeRSS(homepage = 'http://nytimes.com/') for entry in s.run(): print entry
Optionally run any function concurrently via gevent by passing in the kwargs concurrent and num_workers:
from superss import SupeRSS s = SupeRSS( 'http://feeds.feedburner.com/publici_rss', is_full_text = False, concurrent=True, num_workers=10 ) for entry in s.run(): print entry
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|superss-0.1.7.macosx-10.9-intel.exe (165.9 kB) Copy SHA256 hash SHA256||Windows Installer||any||Jun 28, 2014|
|superss-0.1.7.tar.gz (100.6 kB) Copy SHA256 hash SHA256||Source||None||Jun 28, 2014|