Skip to content

How To Export All Posts In Your WordPress Blog (As Readable Text)

June 4, 2011

Hah! I did it even though they said I couldn't.

I must be in a bit of a retrospective mood at the moment. Despite spending about six hours on a single piece of work yesterday, I found myself wandering back through some of my blog posts. Surprisingly, I rediscovered quite a few I had forgotten and several that were really quite good.

I then spent about an hour trying to figure out how to export all the posts from my blog into some kind of readable format, so that I could go through them without resorting to the unacceptably crap 3-items-per-page WordPress search.

Unfortunately, most of the applications that used to be able to read an entire blog and store it offline for ease of editing no longer have that ability: they’ve all been adjusted to edit a single existing entry at a time. Totally frickin’ useless.

And most of the responses I found through Google ran along the lines of “You can’t”.

But they’re wrong: there is a way!

Of course, WordPress has its own export facility (in the Tools on the Dashboard) but that’s as useful as the search: it vomits out some kind of bizarre, WP-specific XML file that’s about as readable as James Joyce’s Ulysses. Actually, it’s probably easier to understand the XML: at least that has some kind of structure.

Given that I’m unwilling to accept that such things are impossible (otherwise known as being a stubborn old bugger who won’t give up), I kept looking. It took quite a while to find a single response on a forum that explained how to do it.

The solution is a nice, geeky workaround that uses a free online tool and a converter. It only takes three steps to complete, so here’s the skinny:

1. Use the WordPress export tool to create a copy of Ulysses. Umm, no… I mean to create an XML file with everything in it. Your browser will dump this on your computer and give it a title like “wordpress.2011-06-05.xml”.

2. Now pop over to the absolutely funky-as-hell Blogbooker website. This truly awesome (and free) tool will convert the entire contents of your blog – including pictures, links and cat spit – into a PDF book in a couple of minutes. It’ll even handle multiple authors, different page sizes and all the other stuff that “professional” tools throw a total wobbler over!

3. You’ll need some kind of file converter to get the text out of the PDF file: Adobe’s ridiculously huge, unwieldy, use-a-particle-accelerator-to-crack-a-peanut application, Acrobat, will do it (File/Export). There are plenty of online apps that’ll do the same job, though they might struggle if it’s a really big file – just Google “convert PDF to xxx” where ‘xxx’ is the output format of your choice. You could even copy/paste each page individually if there aren’t too many.

And that’s it. Incredibly simple!

Admittedly, my PC spent about an hour trying to convert the 2.5Mb PDF file into the largest Word document ever seen on the face of the planet before I gave up, killed the process and went to bed… but hey, it should work quicker if your computer doesn’t suck as badly as mine.

Let me know if you find a better way to do it!

Advertisement
13 Comments leave one →
  1. Papillon permalink
    July 7, 2011 2:25 pm

    http://www.pdftoword.com :-) Let the web do the work.

  2. spikethelobster permalink*
    July 7, 2011 5:50 pm

    Yup, that’s one of many!

  3. September 9, 2011 2:43 pm

    Note this is also useful for subsets of posts. E.g., I write a series of posts on a given subject, marked with a category. I export just the posts for this category. Then I get a PDF for this series. I have had this requested before but did not know how to do it. This solves it.

  4. spikethelobster permalink*
    September 9, 2011 3:38 pm

    Aha, you’re right about that one, John! Thanks for pointing that out: I’d only considered the small picture.

  5. Success Coach Marianne Emma Jeff permalink
    September 10, 2011 10:31 pm

    Thank you so much. I too had found “you can’t do that” from Google and wasn’t accepting it. I however did not have the savvy that I am glad you have. Thank you. I can now review the info. It is as you said a little clunky in word but the pdf version is beautiful. I think I will have to just cut and paste a little at a time as I edit it into my final book. i am looking forward to reading more of your blog.

  6. spikethelobster permalink*
    September 10, 2011 10:46 pm

    Thanks! It’d be nice if it was easier but at least there’s SOME way of getting the text out without using copyright-breaching spiders and stuff! Certainly a lot easier than re-typing the whole lot or copy/pasting everything. :)

  7. September 11, 2011 5:39 pm

    Hey Freaking Genius! Awesome post… you could consider using Nitro PDF.. it took me 2 minutes to convert my 57-page blog book to .docx.

  8. spikethelobster permalink*
    September 11, 2011 7:03 pm

    Why thank you, sir. :) Nitro PDF would be a fine choice but it’s something you’d have to buy and I wanted to figure out a free way to do it (‘cos I’m cheap and nasty!). Whatever works for you!

  9. October 20, 2011 2:36 am

    Alternatively you could use the Export to Text plugin: http://wordpress.org/extend/plugins/export-to-text/

  10. spikethelobster permalink*
    October 20, 2011 11:16 am

    Now, why couldn’t I find that when I went looking, eh? :)
    Ah, I know – it won’t work on a .com domain because you can’t use plugins. But it’s GREAT to know there’s a simpler way for self-hosted. Thanks for that!

  11. February 17, 2012 7:25 pm

    Great post Spike, thanks for the tip, much appreciated

Trackbacks

  1. Technikai fogások: Wordpress blogposztok exportálása szöveges dokumentumba! | Akira útja
  2. Free Half-Hogging Information For Freelance Writers? « ScrawlBug

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.