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. gravitydrift reblogged this from jonthornton
  2. qubeep reblogged this from jonthornton
  3. bemywed reblogged this from jonthornton
  4. carljamilkowski reblogged this from jonthornton and added:
    I’ve been meaning...does this myself. I might fork this code
  5. madril reblogged this from jonthornton and added:
    Thank you Jon!
  6. wordpressdevlper reblogged this from jonthornton
  7. fillingtheweb reblogged this from jonthornton and added:
    works very well. I had all of my posts uploaded here...several minutes.
  8. occasionallyuseful reblogged this from jonthornton and added:
    I’ve just used...Tumblr. There’s still...it beats not having
  9. jonthornton posted this