< Browse > Home / WordPress / Blog article: Convert Post From Wordpress to Blogger

| RSS

Convert Post From WordPress to Blogger

April 5th, 2009 | 21 Comments | Posted in WordPress

Google-blog-converters-appengine is a converter to/from various blog formats like wordpress2blogger, blogger2wordpress and etc.

Let’s take an example, says we are going to convert blog post from wordpress to blogger with google-blog-convertes-appengine.

Steps:

1. Download google-blog-converters-appengine from http://google-blog-converters-appengine.googlecode.com/files/google-blog-converters-1.0-r64.tar.gz

2. Extract the file

3. Download XML export file from wordpress

4. Open Terminal and go into “google-blog-converters-1.0-r64/bin”. Assume the file located at Desktop

cd ~/Desktop/google-blog-converters-1.0-r64/bin

5. Type below command in Terminal

./wordpress2blogger.sh ~/Desktop/wordpress.<date>.xml | tee result.xml

6. Done. You can now import result.xml to blogger host service.

Troubleshooting

If you find any errors when execute “./wordpress2blogger.sh ~/Desktop/wordpress.<date>.xml | tee result.xml”.

Might be caused by the XML syntax errors. Check the error message.

Example:

Traceback (most recent call last):
File “./../src/wordpress2blogger/wp2b.py”, line 467, in
translator.Translate(wp_xml_doc, sys.stdout)
File “./../src/wordpress2blogger/wp2b.py”, line 138, in Translate
xml.sax.parseString(doc, self)
File “/usr/lib/python2.6/xml/sax/__init__.py”, line 49, in parseString
parser.parse(inpsrc)
File “/usr/lib/python2.6/xml/sax/expatreader.py”, line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File “/usr/lib/python2.6/xml/sax/xmlreader.py”, line 123, in parse
self.feed(buffer)
File “/usr/lib/python2.6/xml/sax/expatreader.py”, line 211, in feed
self._err_handler.fatalError(exc)
File “/usr/lib/python2.6/xml/sax/handler.py”, line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: :2678:45: not well-formed (invalid token)

Check the line number highlighted with red color.

The correct syntax for this should be:

<wp:meta_value><![CDATA[Google crhome, Overall, pros & cons, tips & tricks]]></wp:meta_value>

Related Posts
  • No Related Posts
Leave a Reply 2263 views, 1 so far today |
Related Posts
  • No Related Posts
  • Marc

    or converting to & => & is also fine?

  • Marc

    or converting to & => & is also fine?

  • http://blog.chenhow.net chenhow

    u mean putting ' & => &' ? I think that won't solve the problem and you will still getting XML syntax error.

  • Marc

    sorry this rendered rather than displaying as text!

    “& -> & a mp ” was what was intended(without spaces), works fine with xerces at least

  • http://blog.chenhow.net chenhow

    Yup, we can use (&) as markup delimiter and within a comment or CDATA section. If they are needed elsewhre, then it must be escaped using either number character or string like “&amp”. I think it should have the same functionality eventhough I didn't tested it by myself. :)

  • http://blog.chenhow.net chenhow

    u mean putting ' & => &' ? I think that won't solve the problem and you will still getting XML syntax error.

  • Marc

    sorry this rendered rather than displaying as text!

    “& -> & a mp ” was what was intended(without spaces), works fine with xerces at least

  • http://blog.chenhow.net chenhow

    Yup, we can use (&) as markup delimiter and within a comment or CDATA section. If they are needed elsewhre, then it must be escaped using either number character or string like “&amp”. I think it should have the same functionality eventhough I didn't tested it by myself. :)

  • http://gadgettechblog.com/ Gadget_Blog

    This is quite impressive, I am pleased to read this post, keep posts like this coming, you totally rock!
    Cheers,
    gadgettechblog.com

  • http://gadgettechblog.com/ Gadget_Blog

    This is quite impressive, I am pleased to read this post, keep posts like this coming, you totally rock!
    Cheers,
    gadgettechblog.com

  • http://blog.chenhow.net chenhow

    Thanks :)

  • http://blog.chenhow.net chenhow

    Thanks :)

  • fernan

    can you make a step by step guide how to make this program work?

    i downloaded python, added the environment variables but i still dont know how this works. i just want to convert my wordpress blogs to blogger.

  • fernan

    can you make a step by step guide how to make this program work?

    i downloaded python, added the environment variables but i still dont know how this works. i just want to convert my wordpress blogs to blogger.

  • http://blog.chenhow.net chenhow

    How about you tell me you stuck at which step, so I can help you.

  • http://blog.chenhow.net chenhow

    How about you tell me you stuck at which step, so I can help you.

  • http://lastshredsofsanity.com ShanLastShredsOfSanity

    What is “terminal”? I am on a WIn7 PC and when I put this into the CMD Prompt, I get errors.

    “Microsoft Windows [Version 6.1.7601]Copyright (c) 2009 Microsoft Corporation.  All rights reserved.C:Usersqm5>cd DownloadsC:Usersqm5Downloads>ls’ls’ is not recognized as an internal or external command,operable program or batch file.C:Usersqm5Downloads>tar xvf google-blog-converters-r89.tar’tar’ is not recognized as an internal or external command,operable program or batch file.C:Usersqm5Downloads>tar xvf google-blog-converters-r79.zip’tar’ is not recognized as an internal or external command,operable program or batch file.C:Usersqm5Downloads>google-blog-converters-r89/bin/blogger2wordpress.sh blogLSOS-06-09-2011.xml > wordpress-blogLSOS-06-09-2011.xml’google-blog-converters-r89′ is not recognized as an internal or external command,operable program or batch file.”

    Help?

    • Arief Rakhman

      It’s for Linux mam..

  • Vikas

    Hi,
    Can we install this script on a shared hosting..like it is on wordpress2blogger.appspot.com
    I don’t have linux.  My file size is bigger than 1 mb and the above site allows till 1mb.

    regards.
    Vikas

  • MrArmaani

    xml.sax._exceptions.SAXParseException: :21543:5: mismatched tag

    21543:  ]]> ]]>
    21544: 

    what should be syntax for this ?

  • MrArmaani

    im getting this error

    xml.sax._exceptions.SAXParseException: mismatched tag