I wrote this tool because I need to maintain two blogs. It's annoying to have to copy and paste my posts to another blog. And the main reason I have two blogs is that blogger's service is not available in china mainland, due to a well-known reason. But I don't want to give up blogger's tight integration with my gmail account. So, I mainly write blogs here, and then use blog-porter to synchronize the other blog with this one.
Refer to http://code.google.com/p/blog-porter/ for more information about this utility.
The immediate usage of this tool is to sync posts from LiveSpace blog to other blog sites, because LiveSpace blog is soon to be closed. To do this, you can:
- download LiveSpace blog data through http://{your_name}.spaces.live.com/Migration/Default.aspx
- extract the downloaded zip file
- install python, and BeatuifulSoup module
- run "python blogporter.py --list-blogs" to find out supported blog provider
- run "python blogporter.py --src-type=4 -p{path_to_unzipped_folder} --dst-type={number_stand_for_dst_blog_type} --dst-account={dst_blog_account} --dst-password={dst_blog_password} --startdate=2000-01-01 --enddate=2010-12-31 -v"
This tool still has limitations, mainly includes:
- it doesn't sync comments
- it doesn't sync category information from LiveSpace
- metaweblog api, it's limited to retrieve 20 posts at most.
- rss, it returns even less posts than metaweblog api. May be Google Reader API can helps us get more data through rss, since google cached a lot of historical rss data on their own server.
- livespace backup file, it doesn't contain category information.
I finally choose livespace backup file to implement LiveSpaceProvider, hope this doesn't bother too much.
No comments:
Post a Comment