views:

614

answers:

5

I'm looking at what is needed to move from wordpress.com to a BlogEngine.NET or similar blog. I've seen a tool for replacing export.php so that it will export your wordpress site in BlogML format so it can easily be imported into BlogEngine.NET, however I'd really not want to have to setup php/wordpress just so I can import a back up from wordpress.com and then use the export from my local wordpress to have a BlogML file.

Are there any tools that will convert the wordpress file? Is there a different blog that will natively import the wordpress file?

Edit: For the question about other blog providers, I am open to them as long as they are .NET based, preferably C#.

+1  A: 

I've been found this, hope this helps to you.

http://weblogs.asp.net/aghausman/archive/2009/07/20/migrate-from-wordpress-to-blogengine-net.aspx

See yaa.

GeoAvila
I had saw that earlier, however you need to own your wordpress to use that. Theoretically I could always install wordpress on my computer, import my blog posts back in, then follow that to export it. But that's alot of configuration to use just convert that output.
Chris Marisic
+1  A: 

I don't know of any tool but you may be able to parse the content. Sort of a fun experiment ;)

The url for the Archives is: yourblog.wordpress.com/year/month; e.g. yourblog.wordpress.com/2009/11. The content for the page is wrapped in a div with the id="content". Each post is wrapped in a child div that contains a class called "post", and the target href is contained in a child H2 tag.

It looks roughly like this:

<div id="content">
  <div class="post-597 post hentry category-activeengine category-coaching tag-philosophy">
    <h2>
      <a title="Permalink for : More than .Net, jQuery, S3 and Corporate-Speak" href="http://activeengine.wordpress.com/2009/11/24/more-than-net-jquery-s3-and-corporate-speak/"&gt;More than .Net, jQuery, S3 and Corporate-Speak</a>
      <em>November 24, 2009</em>
    </h2>
    <em class="info"></em>
  <div class="snap_preview">
</div>
</div>
<div class="post-562 post hentry category-net category-activeengine category-linux category-mono category-new-techniques category-open-source tag-c tag-mono tag-monodevelop">

Potentially you could do a get for each monthly archive page and use jQuery to parse out the href to each post. Once you have all the hrefs you could run another process that would pull down each html file. You would also need a process for the images. To keep things easy you could create folder structure that mirrors the archives.

David Robbins
the markup differs widely depending on the theme used, but there is a feed available for each category, month etc - why not parse that if you have to parse something?
adam
+1 - didn't think of that. Basically I opened Firebug and started looking at the tags. I like your idea as it eliminates the first screen scraping run.
David Robbins
+2  A: 

Are there any tools that will convert the wordpress file?

wordpress.com exports in XML, so that might be easier than using feeds or otherwise grabbing html and parsing it. Navicat supports XML into PHPMyAdmin, which exports SQL.

Is there a different blog that will natively import the wordpress file?

Are you open to using platforms other than BlogEngine?

songdogtech
Hadn't thought about the XML. That may make it easier to convert to the BlogEngine format.
David Robbins
A: 

This seems risky. Almost to the point of it not being worth it. Then again, to each...

osha training
What do you mean risky? This answer doesn't really seem relevant.
Chris Marisic
A: 

With thanks for this awesome information; this is the kind of component that continues me though out the day.I have long been wanting close to to your website immediately after I learned about them from a buddy and was delighted when I was in a position to come across it immediately after looking for a while. Becoming a passionate blogger, I’m thrilled to view other folks taking effort and giving to the neighborhood. I just desired to opinion to display my appreciation for your submit as it’s highly pushing, and many freelance writers tend not to get the credit score they should have. I’m certain I’ll be back again and can deliver some of my buddies.

Volunteer in Thailand