PyBlogger 1.0 is now available.

This version adds a major piece of new functionality: the Blogger factory, which can output the contents of your blog in several useful formats. Currently, the following formats are supported:

Each format has a corresponding function in bloggerfactory.py, e.g. getBlogAsRSS, getBlogAsScriptingNews. All functions have an API identical to this one:

  def getBlogAsRSS(blogID, username, password, maxposts=15):

which should be fairly self-explanatory. There is also a generic function that takes the format as a string:

  def getBlogAs(format, blogID, username, password, maxposts=20):

where format in (’RSS’, ’scriptingNews’, ‘Minimal’, ‘Javascript’).

The Blogger factory requires several functions which are not yet implemented via XML-RPC; these are implemented in a hackish sort of way in bloggerext.py. These functions are Blogger.com-specific, so the Blogger factory is Blogger.com-specific. The specific functions required are getBlogInfo (to get blog title, description, and URL) and getUserInfo (to get user’s real name). It is my hope that these functions will some day be available via XML-RPC, so that I can update the Blogger factory to use the “official” versions and it can be compatible with all Blogger-compatible servers. (Manila users aren’t really missing anything, since they’ve had all this for years. ;)

Thanks to Meerkat for the idea. Suggestions for additional formats are welcome. The code is Python-licensed, so use it however you want. Go nuts. This is the fun part, after the foundation is laid and we can start building castles.

§

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



§

firehosecodeplanet

© 2001–9 Mark Pilgrim