Skip to main content

RSS parsing with batteries included

Project description

travis-img 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 merging this data with the data from the RSS feed.

Finally, some sites don’t even have RSS feeds. In this case we combine pageone and particle to create a feed of articles from article urls on a site’s homepage.

Install

pip install superss

Test

Requires nose. (only currently tests full_text rss feeds.)

nosetests

Usage

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

Experimental: Build a feed from a homepage. You must install pageone and particle to run this.

from superss import SupeRSS

s = SupeRSS(homepage = 'http://nytimes.com/')
for entry in s.run():
  print entry

Optionally pass in a list of urls to ignore. This option is for the purposes of depuplicating when we’re polling a feed on an ongoing basis.

s = SupeRSS('http://feeds.feedburner.com/publici_rss', ignore_urls=[])
for entry in s.run():
  print entry

TODO

  • [ ] Add optional concurrency with gevent

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

superss-0.1.3.tar.gz (100.5 kB view details)

Uploaded Source

Built Distribution

superss-0.1.3.macosx-10.9-intel.exe (165.8 kB view details)

Uploaded Source

File details

Details for the file superss-0.1.3.tar.gz.

File metadata

  • Download URL: superss-0.1.3.tar.gz
  • Upload date:
  • Size: 100.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for superss-0.1.3.tar.gz
Algorithm Hash digest
SHA256 516ba764c01cd5d3ba1e390595ce5bdee39ad27b9386ea06b73508466a2fa01b
MD5 738838bc404f9ece1cfb10c53d5172ef
BLAKE2b-256 6443c5f89509076b53ae6041d63bde3a501fe45459fd53946563bdf0e6186715

See more details on using hashes here.

File details

Details for the file superss-0.1.3.macosx-10.9-intel.exe.

File metadata

File hashes

Hashes for superss-0.1.3.macosx-10.9-intel.exe
Algorithm Hash digest
SHA256 92e3a5ee8ca79fd7be76892fc4fe1f5a3391775ea393222c4187f49dec44816b
MD5 4e9f7d12bf5535a9dab1cb835be2a2cc
BLAKE2b-256 e864c59a37a29a4c35fb7c0d0d0ca6259d86ca372f45782a7b6b51a5d37e6245

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page