RssRead is an experimental API for reading RSS (and Atom)
Writen in Python, using feedparser, is meant to be used in CLI program. GUI program or integrated in other programs.
Its simple api ideal for a RSS reader.
t's a module you can use with a
import RssRead as feed
and then use the News property to get the news
rss = feed.RssRead()
try:
rss.loadNewsRss(NAME)
except feed.SiteError:
print 'Site not present!'
for news in rss.News:
pass
In NAME you can use any of the configured* site. You can, of course, use multiple RssReader on the same program. Or you can load more news with the same istance (using each time loadNewsRss()) Use the News object bearing in mind that it's already in a Xthml Link format.
*You can add/remove sites you con use the following syntax
try:
rss += 'site', 'url'
except (TypeError, feed.SiteError):
print 'Already present'
try:
rss -= 'site'
except (TypeError, feed.SiteError):
print 'Not present'
Downloads:
0 This Week