The Artima Developer Community
Sponsored Link

Python Buzz Forum
PyBloglines

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Michael Josephson

Posts: 20
Nickname: mikej
Registered: Nov, 2004

Michael Josephson is a software engineer based in Manchester, UK
PyBloglines Posted: Nov 12, 2004 6:08 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Michael Josephson.
Original Post: PyBloglines
Feed Title: SDJournal
Feed URL: http://www.sdjournal.com/archives/categories/languages/python/rss.xml
Feed Description: Posts from the Python category on SDJournal
Latest Python Buzz Posts
Latest Python Buzz Posts by Michael Josephson
Latest Posts From SDJournal

Advertisement
I've put together an initial version of a Python module for accessing the Bloglines Web Services. Details and downloads are on the PyBloglines project page. You'll need a copy of Mark Pilgrim's Universal Feed Parser, which is used when you get items.

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.

Read: PyBloglines

Topic: A Byte of Python Previous Topic   Next Topic Topic: Functional

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use