RSS parsing with batteries included
Project description
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.
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
Full-Text Feeds
from superss import SupeRSS
s = SupeRSS('http://feeds.feedburner.com/publici_rss')
for entry in s.run():
print entry
Non Full-Text Feeds
from superss import SupeRSS
s = SupeRSS('http://feeds.feedburner.com/publici_rss', is_full_text = False)
for entry in s.run():
print entry
Feed from homepage
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
Concurrency
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file superss-0.2.0.tar.gz
.
File metadata
- Download URL: superss-0.2.0.tar.gz
- Upload date:
- Size: 100.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4452a185f2efd312792eb3fc01e253e830ab468838b598f52d39486880faab70 |
|
MD5 | bcdb5161fa60cb06d0a03899929b0ef4 |
|
BLAKE2b-256 | d69f230f4ec190467907f85a256616e488ff5edfd6b97cf492fa457116092d4c |
File details
Details for the file superss-0.2.0.macosx-10.9-intel.exe
.
File metadata
- Download URL: superss-0.2.0.macosx-10.9-intel.exe
- Upload date:
- Size: 166.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a72b3219cbb87ff10a9b2de414da0d64ae2a6f69ef7dedcb6783abbebb584d1 |
|
MD5 | 44d6b0afed330eec39dcf092004b3b15 |
|
BLAKE2b-256 | 2b29a55f0a490a774b5112ede0c3a00c9820263df3dd524f0e9fc5e290e38b37 |