/blogspot_importer

Rails plugin to import Blogspot posts

Primary LanguageRubyMIT LicenseMIT

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