Is there a book in your blog? Convert WordPress to Scrivener

I found this great post from Liz Strauss with a great idea: Look through the archives of your blog and see if there is a book in there. She suggests that if you have 200 posts, there’s probably a book. I have over 400 – maybe even two! But seriously, it’s a good idea.

I’ve just started using Scrivener, and that would be an awesome tool to pull this together. It has great features for managing chunks of text, including a corkboard for arranging them. But how to get the posts into Scrivener?

It was an interesting problem to solve and I figured it out. It brought the posts in just the way I wanted them: Separate files, with images intact.

Here’s how to do it:

  1. Use the wp2epub plugin to get the posts out as an .htm file. This is a subtle feature, but the htm file comes in the .zip file that is created with the epub file.
  2. Edit the htm file to replace the <h1 class=”main”> tag at the start of each post with the same tag but with ### on its own line in front of it.
  3. Import the .htm file into Scrivener. It will come in as a web archive, and images should be intact.
  4. Use Documents->Convert->Web Archive to Text to convert the file to text within Scrivener.
  5. Export the newly created text file as RFTD, rich text in Apple’s format.
  6. Import the newly exported file, but use the Import and Split function, entering ### as the split string.
  7. You now have your posts in Scrivener, each as a separate file with images intact.

Leave a Reply

Your email address will not be published. Required fields are marked *