Importer for Blogger.com
Thanks to the excellent importer framework in TextPress, it is relatively easy to write an importer for any arbitrary data. The system allows for importing posts, comments, labels, authors, and these make up a complete blog. The blog is enqueued and the admin can decide which components of the blog to actually import.
So all an importer needs to be able to do is instantiate textpress.importers.Blog (with the data), and call enqueue_dump on the instance. TextPress takes care of the rest.
The importer for Blogger.com was not a particular technical challenge, especially that Google have made available a Python client library for accessing their GData-based applications.
The process is:
- Authenticate with Google
- Grab and parse feeds of posts and comments
- Ask TextPress to dump the data
Interested in creating your own importer? Check out textpress/importers/, the base code is in __init__.py and the existing importers are there to use as examples.
2008-02-22 00:18 by Ali Afshar, 0 comments