Skip to content

Instantly share code, notes, and snippets.

@hendrikmorkel
hendrikmorkel / import.rb
Created Mar 9, 2012 — forked from ngauthier/import.rb
Import a blogger archive to jekyll
View import.rb
require 'rubygems'
require 'nokogiri'
require 'fileutils'
require 'date'
# usage: ruby import.rb my-blog.xml
# my-blog.xml is a file from Settings -> Basic -> Export in blogger.
data = File.read ARGV[0]
doc = Nokogiri::XML(data)