Rails plugin to import Blogspot posts
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
tasks
test
MIT-LICENSE
README
Rakefile
init.rb
install.rb
uninstall.rb

README

BlogspotImporter
================

This tool will parse your Blogspot export xml file.


Example
=======

@blog = BlogspotImporter::Blogspot.import("#{RAILS_ROOT}/public/blog-03-04-2011.xml")

@blog looks like this:

[ 0 => {  'post_title'              => 'title'
          'post_content'            => 'content'
          'post_tags'               => [tag1, tag2, tag3]
          'post_published_date'     => 'date'
       },
  1 => {  'post_title'              => 'title'
          'post_content'            => 'content'
          'post_tags'               => [tag1, tag2, tag3]
          'post_published_date'     => 'date'
          'post_is_draft'           => 'yes' or 'no'
          'post_comments'           => [
            {
              'comment_author_name'     => 'author'
              'comment_author_email'    => 'email'
              'comment_content'         => 'content'
              'comment_published_date'  => 'date'
            },
            {
              'comment_author_name'     => 'author'
              'comment_author_email'    => 'email'
              'comment_content'         => 'content'
              'comment_published_date'  => 'date'
            }
          ]
       },
]

Copyright (c) 2011 [Patrick Sanchez], released under the MIT license