DCSIMG
Importing blog posts using MetaBlog API - Zuker On Foundations

Zuker On Foundations

The realm of .NET (WPF, WCF and all around)
Importing blog posts using MetaBlog API

As you might have known by yesterday, I moved my blog from WindowsClient.net over here at Microsoft.co.il.

I consulted with Guy Burstein regarding how to I could import the posts to the new blog, he referred me to the following post -
Manipulate Your Blog with MetaBlog API for C#

This was a great post – thanks Guy!

I followed the steps there in order to get the API and the connection ready.

Afterwards, I connected to the source, pulled out the posts and saving them to a file.
At last, I loaded the posts, connected to the target (the new blog) and posted all the posts.

Obviously, I could do this one right after another (without persistence) but I did want to take an overall look and see everything is fine and have future reference to the posts’ content. (E.g. finding all the posts I attached files into)

Note that this does not synchronize tags nor comments.

The source code is attached, feel free to download and play with it yourself.

Attachment: BlogImporter.zip
Published Friday, January 16, 2009 9:04 PM by Amir Zuker
תגים:,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Enter the numbers above: