Import a WordPress blog into Tumblr

Earlier this week I decided move an old self-hosted WordPress blog into Tumblr and discovered that there really weren’t any tools to import your existing WordPress content into your new Tumblog. So I built one.

wp2tumblr.py (right click and “Save as” to download)

Download an XML export of your blog by logging in to WP-admin and going to Tools -> Export. Then run the wp2tumblr.py script — instructions will be printed when you run it. The script adds some artificial delays to avoid overloading Tumblr’s API.

I wrote it in python for fun but am no means a python expert, so if you see something in the code that makes you say WTF, send me an email and show me what I’m doing wrong.

Update: wp2tumblr is now also on GitHub.

  1. occasionallyuseful reblogged this from jonthornton and added:
    I’ve just used...Tumblr. There’s still...it beats not having
  2. jonthornton posted this