Mephisto to WordPress

An easy way to import a Mephisto blog into WordPress is by using a Python script for extracting a WordPress-friendly WXR file from Mephisto (which can be imported via the WordPress web admin interface), which eventually worked like a charm. I had to modify it to use MySQL, and to look at a different date field for publication (my Mephisto install was returning Null in the field m2wp.py was looking at).

  1. Go grab m2wp.py.
  2. Download m2wp-mysql.diff. (Update 6/6/08: fixed the missing trailing newline)
  3. Run patch m2wp.py m2wp-mysql.py.diff -o m2wp-mysql.py.
  4. Now you can run python m2wp.py -h and you’re off and running!

A less effective method is to transform Mephisto’s Atom feed into RSS, and import that into WordPress. This is a pain, because the feed does not contain comments, but here is how I did it before I discovered m2wp.py:

  1. Get the XMLStarlet command line XML toolkit.
  2. wget http://atom.geekhood.net/atom2rss.xsl
  3. wget http://mymephistoblog.com/feed/atom.xml
  4. xml tr atom2rss.xsl atom.xml > rss.xml
  5. Go to http://mywordpressblog.com/wp-admin/admin.php?import=rss
  6. Import your rss.xml
  7. Pull comments over by hand.

4 Responses to “Mephisto to WordPress”


  1. 1 edbury

    It looks like the .diff file isn’t working for me. Any chance you can post the alter script?

  2. 2 Paul

    Hi, I’m trying to convert also- it looks like your patch file is incomplete though- could you please email me the finished python script please?

    Thanks!

  3. 3 Jason Morrison

    Hey folks - thanks for the comments. I’ve fixed the patch file, hopefully this is still useful for someone.

    Cheers!

  4. 4 Marc

    Worked like a charm :D Thanks

  1. 1 naked ink » Blog Archive » moving from mephisto to wordpress - as smoothly as possible
  2. 2 Convalesco » Blog Archive » Flying from Mephisto to Wordpress
  3. 3 Marc’s blog » Blog Archive » Switched back to Wordpress
  4. 4 rel=me » Blog Archive » Moved

Leave a Reply