PyBloglines 0.02
This is just a minor update to PyBloglines which makes the BloglinesUnread count available in each subscription returned bylistsubs. ZIP and .tar.gz versions are available on the project page.listsubs. ZIP and .tar.gz versions are available on the project page.Usage is:
from pybloglines import BloglinesWebServices
# password is optional if you're only calling update() to check unread count
bws = BloglinesWebServices("user@example.org", "password")
To a count of the unread items for the user:
unreadCount = bws.update()
To get a list of subscriptions:
feeds = bws.listsubs()
This is returned as a list of Subscription objects where each entry has title, htmlUrl, type, xmlUrl, bloglinesSubId and bloglinesIgnore.
for feed in feeds:
print feed.title
Get the items unread items for a feed, not marking them as read:
feedData = bws.getitems(bloglinesSubId)
What you get back is the result of passing the RSS returned by the BWS getitems call through feedparser so see the documentation for details on the structure.