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 picks 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 using tk-name-of-article-extractor and then intelligently merging this data with the data from the feed.
Install
pip install superss
Test
Requires nose
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
TK grab 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
TODO
[ ] Include article extraction
[ ] Add optional concurrency with gevent
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.0.2.tar.gz
.
File metadata
- Download URL: superss-0.0.2.tar.gz
- Upload date:
- Size: 99.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9dbaff08c562f38a32a0b749990f262a4a9edd9633b3ae256b04a4589a2bbfb5 |
|
MD5 | 17858554d5826e5758e8bc8b9734187d |
|
BLAKE2b-256 | 133b027362dc9b748e446a2b347a8710317805c3757b4731fbec336425469e47 |
File details
Details for the file superss-0.0.2.macosx-10.9-intel.exe
.
File metadata
- Download URL: superss-0.0.2.macosx-10.9-intel.exe
- Upload date:
- Size: 164.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c39f70c348d8ac939e757d25d93fa89789979519ca4430074384d4ac8cdd68df |
|
MD5 | aa9d0e785bc3bad2f9b5cb8584e818ce |
|
BLAKE2b-256 | f2c8c80583ceecbfd474bc746ba3a85635a17fd3a58248b15330085424281697 |