Immigrada

Description

Small script for converting entries from Blogger.com blogging service to markdown files for Middleman static site generator. It should be also possible to use the result with other site generators.

Script parses Blogger Atom XML file for blog entries and saves each of them to separate file in markdown format. It also downloads images from posts and replaces links to them with local paths.

Usage

Exporting your blog

  1. Sign in to your Blogger account;
  2. Go to Settings - Other;
  3. Choose "Export blog" in "Blog tools" section;
  4. Download XML file with exported entries;

You can find more instructions here.

Script execution

  1. Install Ruby;
  2. Clone this project and navigate to it;
  3. Run bundle install to download dependiencies;
  4. Run ruby bin/immigrada run -i blog.xml where "blog.xml" is Blogger XML backup, downloaded in previous section.

To Do

There are still a lot of things to do, feel free to contribute:

  • Add to RubyGems;
  • Resolve problems with line breaks when parsing 'pre' elements;
  • Add status messages while processing;
  • Add proper error handling;
  • Add input file checks for correctness;

License

Project is distributed under The MIT License.