Using Gentoo and Vi

2007-02-27

blogsync with gui coming, import your wordpress to blogger

blogsync with gui coming

and with some control function about which posts to import.

it can be downloaded from
http://yichao.zhang.googlepages.com/blogsync-with-gui.tar.gz

Readme.txt

0. What is it used for?
This is a simple tool to import all posts from wordpress to blogger/blogspot.

1. How to use it?
0) set java in your path.
for windows users, run run.bat
for unix/mac users, run run.sh
1) set up your wordpress and blogger account.
2) choose one import option from option panel.
3) read posts from wordpress.
4) check posts and remove any posts that you do not want to import by selecting and right-clicking.
5) import now by just clicking the import button.

2. what is my blogger blogid?
It's in your blogspot Dashboard url, for example: http://www2.blogger.com/posts.g?blogID=18083698
"18083698" is your blogid.

3. what may cause this error?
[Fatal Error] :1444:21: Invalid byte 1 of 1-byte UTF-8 sequence.
org.apache.xmlrpc.client.XmlRpcClientException: Failed to parse
servers response: Invalid byte 1 of 1-byte UTF-8 sequence.

One of your posts may be an invalid xml.
please correct it and make sure its source code is valid xml, then import again.

4. any other questions?
Welcome to send your feedback to Yichao.Zhang & gmail.com
or leave me a comment on http://zeaster.blogspot.com

Labels: ,

70 Comments:

  • Works like a charm! Thanks!

    By Blogger Erica Joy, At 4:46 PM  

  • I have an xml file that I exported from WordPress. Unfortunately I cannot log in to my WordPress file because it is hosted by my university. Is it possible to use your tool to import the xml file into blogger?

    By Blogger josejuan05, At 2:31 AM  

  • I have bad news and good news.
    the bad news is the tool can not help importing the xml file.
    the good news is you can follow these steps to import the xml file.
    1) download wordpress from wordpress.org
    2) set up a local wordpress site.
    3) import your rss xml file into your local wordpress site.
    4) import wordpress to blogger by this tool.

    By Blogger Yichao, At 9:17 AM  

  • The history of perfume oils dates back to ancient Egypt when these fine scented oils were presented to royalty as gifts. In modern times, however, when the word "perfume" is said, most people think of department store fragrances, which consist mainly of the concentrated oil and alcohol solution. Nevertheless, as more and more people are finding out about them, perfume oils are experiencing great popularity. Here are some interesting facts about perfume oils:

    By Anonymous obsession-perfume, At 4:19 AM  

  • Excellent job. It works. Question is: is there any way to import comments too or maybe I'm asking for too much? :)

    By Blogger Dr. J, At 11:47 PM  

  • No, it can not import comments.
    As looking for a job recently, I have not enough time to implement that feature. so today, I created a project at
    http://code.google.com/p/wordpress2blogger

    welcome to contribute in implementing that feature.

    By Blogger Yichao, At 5:44 PM  

  • After setting up the two accounts, I press on "Read Posts from WordPress" and get:

    when reading posts from wordpress, error occurs:
    Failed to ready servers response: Connection refused: connect

    By Blogger BB Iverson, At 6:33 PM  

  • I had entered "http://" as part of my WP URL under Account Setting. I removed that and got rid of the aforementioned error. However, I'm now getting the error:

    Failed to create input stream: Server returned response code 403 for URL:http://path/to//xmlrpc.php

    Notice the two /'s before xmlrpc.php. Is that supposed to be like that?

    By Blogger BB Iverson, At 6:42 PM  

  • Sorry for all the comments. You can delete them if you want. I fixed my problem (again). There's a plugin called Enforce www. Preference that was affecting the path to my xmlrpc.php file. I deactivated it and now no more errors!

    By Blogger BB Iverson, At 6:46 PM  

  • Thanks. That would be a good tip for the Enforce www. Preference plugin users.

    By Blogger Yichao, At 7:42 PM  

  • Trying to move a blog from a wordpress on my own domain to blogger.com,
    i also get "Failed to ready servers response: Connection refused: connect".
    i tried no 'http://', tried with it, tried adding a "/" after the domain. still getting the error...

    What else can i try?

    By Anonymous Anonymous, At 3:24 PM  

  • To be honest then i cannot understand a thing how it works. I am mac user and when i pressed on run.sh just one window opened with following text:
    export CP=./lib/blogsync.jar:./lib/ws-commons-util-1.0.1.jar:./lib/xmlrpc-client-3.0.jar:./lib/gdata-client-1.0.jar:./lib/xmlrpc-common-3.0.jar
    java -cp $CP org.easter.blogsync.BlogSync

    So, what next?

    By Anonymous Anonymous, At 11:07 PM  

  • to the first anonymous user:
    please check the xmlrpc.php file in the wordpress directory is valid.
    HTH.

    to the 2nd anonymous user:
    On your Mac, by default the .sh file may be set to be opened by a text editor.
    you should run the run.sh file as a Mac bash shell.
    i.e: type "sh run.sh" in your terminal.

    By Blogger Yichao, At 12:03 AM  

  • Hi!

    I have a problem, nothing happends on the import tool, under "LOG" start to import posts , but nothing happends. Whats the reason?

    Hope somebody can help me!

    Greetings

    Mike

    By Anonymous Anonymous, At 7:14 AM  

  • Hi Mike,
    Have you read posts from wordpress first?
    if successfully reading the wp posts, please import 1 or 2 posts first for a test.
    It may cost lots of time to import many posts for one time.
    and there is a flaw in the tool, the log outputs info only when all posts have been imported, not one by one.

    By Blogger Yichao, At 9:24 AM  

  • hi there, thx for the good work! however, i'm also getting error:

    the wordpress url is invalid
    no protocol: xxxx.wordpress.com/xmlrpc.php

    i'm using free wordpress and i don't know where to find the xmlrpc.php file.. sorry i'm very much tech illiterate :)

    By Blogger Susanna Ng, At 11:27 PM  

  • add "http://" to your wordpress address, and try again.

    By Blogger Yichao, At 12:13 AM  

  • hi yichao, i did just that but this time i have another message:

    failed to read servers response: connection refused: connect

    i read your previous answer above but i don't know what is xmlrpc.php :P

    By Blogger Susanna Ng, At 4:07 AM  

  • Hi Susanna,
    remove "xmlrpc.php" from your wordpress url and try again.
    the url looks like:http://xxx.wordpress.com

    for "http://xxx.wordpress.com/xmlrpc.php ",
    this url provides some functions to read from or post to your wordpress.
    and the blogsync tool uses these functions to sync between wordpress and blogger.

    By Blogger Yichao, At 2:56 PM  

  • When trying to run this program under Linux, I get the following error:

    Exception in thread "main" java.lang.NoSuchMethodError: method org.easter.blogsync.SyncFrame.setMinimumSize with signature (Ljava.awt.Dimension;)V was not found.
    at org.easter.blogsync.SyncFrame.initialize(SyncFrame.java:382)
    at org.easter.blogsync.SyncFrame.init(SyncFrame.java:96)
    at org.easter.blogsync.BlogSync.main(BlogSync.java:21)

    maybe I'm missing some classes? Here is my classpath:

    echo $CLASSPATH
    :/usr/lib/jvm/jre-1.4.2/lib:/usr/lib/jvm/java-1.4.2/lib:/home/hbuch/downloads/blogsync/lib

    It's been a while since I've used Java, so maybe I'm doing something wrong. Any help would be appreciated.

    Thanks,

    Heather Buch

    By Blogger Heather, At 6:23 PM  

  • please try jdk 1.5.
    the method setMinimumSize() comes since jre 1.5, so the tool does not work against jre 1.4.x.

    By Blogger Yichao, At 9:41 PM  

  • Hi again Zhang,

    OK, jdk 1.5 worked (needed both lib and java binary to be 1.5).

    Now I can see the java GUI, however, when I click "Read Posts from Wordpress", after filling out all settings, I get this error: Fatal Error] :1:1: Content is not allowed in prolog.

    so, what does it mean? I'm getting closer....

    Heather

    By Blogger Heather, At 10:21 AM  

  • Hi Heather,
    see http://zeaster.blogspot.com/2007/05/blogsync-20-released-import-your.html

    hope this helps.

    By Blogger Yichao, At 10:43 PM  

  • This is another tool I use it to import my WordPress to BlogSpot:
    http://groups.google.com/group/blogtransmit-discussion-group

    By Anonymous Anonymous, At 10:35 PM  

  • this tool does not connect to my blogger account. Pls. help.

    By Anonymous Anonymous, At 9:36 PM  

  • I am getting error: cannot log into blogger account, Invalid credentials. Though its able to read the posts from WP. Pls. heeelp!

    By Anonymous Anonymous, At 11:15 PM  

  • can you login successfully with your username/password on the blogger website?

    I tried it with the version 0.3, and it works fine.
    you can find it on
    http://code.google.com/p/blogsync-java/downloads/list

    By Blogger Yichao, At 9:24 AM  

  • when reading posts from wordpress, error occurs:
    Failed to ready servers response: Connection refused: connect

    How do I fix that? :(

    By Anonymous Anonymous, At 1:11 PM  

  • can you login successfully with your username/password on the wordpress website?

    or you can export wordpress to a rss xml file first, and then import to blogger from the xml file.
    try it with the version 0.3 from http://code.google.com/p/blogsync-java/downloads/list

    By Blogger Yichao, At 7:12 PM  

  • If you still have the error, pls provide some more details, see error.log in your blogsync directory.

    By Blogger Yichao, At 9:08 AM  

  • This is a superb tool - worked fine!

    Many thanks :)

    By Blogger snee, At 4:47 PM  

  • hi yichao! i hope you can help me. i don't know what "set java in your path" means. i'm on a mac. is it something in terminal?

    after i do that, then i think i'll need to do what you told someone else... to make the run.sh file not open in text editor.

    THEN hopefully i'll be on my way! thank you in advance. :)
    jen

    By Blogger jen o, At 3:52 AM  

  • Hi jen
    Have you installed jdk1.5.0 or later on your Mac OS X?
    If not, upgrade from apple.com

    By Blogger Yichao, At 2:41 PM  

  • i have the latest java update from apple. it says J2SE 5.0 (1.5.0).

    By Blogger jen o, At 3:02 PM  

  • hi jen,
    open terminal,
    $java -version
    if it says jdk1.5.0
    it should be working fine, isn't it?
    if sucks, what does it prompt in terminal?

    By Blogger Yichao, At 3:40 PM  

  • do you mean to type in "$java -version" in terminal?

    the terminal prompt is this:

    Last login: Tue Sep 4 15:07:26 on ttyp1
    Welcome to Darwin!
    Jen-####-Computer:~ jen####$

    By Blogger jen o, At 6:10 AM  

  • Hi jen,
    I mean:
    after '$' in the terminal, type "java -version" and press Enter, what does it prompt?

    it should look like:
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
    Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)

    By Blogger Yichao, At 8:56 AM  

  • yes! it says this:

    java version "1.5.0_07"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
    Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)

    By Blogger jen o, At 11:11 AM  

  • Hi jen,
    Good!
    and then in the terminal, type "sh run.sh" to run blogsync

    By Blogger Yichao, At 11:18 AM  

  • it says this:
    run.sh: run.sh: No such file or directory

    but it's in the blogsync folder on my desktop! do i need to put it somewhere special?

    oh, thank you so much for your patience and help!

    By Blogger jen o, At 11:48 AM  

  • Hi jen,
    you should cd into your blogsync directory first.
    says your run.sh is in "/home/jen/blogsync" directory.
    in terminal,type:
    $cd /home/jen/blogsync
    $sh run.sh

    or
    $sh /home/jen/blogsync/run.sh

    By Blogger Yichao, At 12:10 PM  

  • YES! that worked!

    now i am having an error that other people have had:

    when reading posts from wordpress, error occurs: Failed to create input stream: http://localhost/wordpress/xmlrpc.php

    i have wordpress installed in my own domain, my xmlrpc.php file is in http://mydomain.com/blog. how can i tell blogsync where it is?

    thank you so much. i'm getting closer!

    By Blogger jen o, At 12:58 PM  

  • Hi jen,
    press Accounts button on blogsync,
    adjust the settings and save as default.

    By Blogger Yichao, At 2:02 PM  

  • adjust what settings? i put in all my wordpress and blogger information, and that gave me the error.

    By Blogger jen o, At 2:24 PM  

  • Hi jen
    check settings.properties in blogsync.
    Is it correct?
    if not, adjust it with a text editor.
    for example:
    change wp.url=http\://localhost/wordpress
    to
    wp.url=http\://mydomain.com/blog
    and some other settings.

    By Blogger Yichao, At 2:31 PM  

  • ok, i opened settings.properties in text editor and everything is correct. i'm so confused!

    By Blogger jen o, At 2:39 PM  

  • hi jen
    pls send me error.log in the blogsync.

    By Blogger Yichao, At 2:47 PM  

  • Is this software applicable with WordPress.com? I tried to move WP posts to Blogger, but always found some errors..

    Thanks.

    By Blogger EscRiBiTioNiSt®, At 10:44 AM  

  • try the lastest version:
    http://blogsync-java.googlecode.com/files/blogsync-0.3.zip

    By Blogger Yichao, At 10:49 AM  

  • Thank you for the reply.

    However, when I click 'run' for Windows, there was nothing happened. The BlogSync window does not show up unlike when I clicked on 'run' from the earlier versions.

    By Blogger EscRiBiTioNiSt®, At 9:30 PM  

  • hi EscRiBiTioNiSt,

    I just post a faq on
    http://code.google.com/p/blogsync-java/wiki/BlogsyncFAQ
    or
    http://zeaster.blogspot.com/2007/09/blogsync-faq.html

    By Blogger Yichao, At 12:52 PM  

  • I have this problem

    "when publishing post to blogger error occurs: bad request"

    any idea whats wrong?

    By Blogger andrian martin dominic, At 8:04 PM  

  • Are you using the latest version from http://code.google.com/p/blogsync-java/downloads/list

    the faq on
    http://code.google.com/p/blogsync-java/w/list
    or send me your error.log if you like

    By Blogger Yichao, At 9:24 PM  

  • Hi,

    I am trying to implement automatic posting of links from del.icio.us to Blogger and it asks for :

    "out_url is the full URL of the XML-RPC interface for your blog, which probably ends in something like mt-xmlrpc.cgi"

    Can you help me to get the full URL of the XML-RPC interface for Blogger blogs?

    Thanks in advance,

    By Blogger vin, At 7:50 PM  

  • Hi vin,
    "The Blogger 1.0 API is no longer supported and must not be used for new client development. Please use our GData API instead."
    documented on
    http://www.blogger.com/developers/api/1_docs/

    so I suggest using GData API instead of xmlrpc.

    By Blogger Yichao, At 9:13 AM  

  • This post has been removed by the author.

    By Blogger burning flame, At 5:22 AM  

  • Thanks a lot. This realy helped. I was able to move my post from November 2006 till March 2007, when it suddenly stopped. I get the messages as it is read and posted successfully but it doesn't appear in my new blog. Can anyone help?

    Thanks in advance!

    By Blogger burning flame, At 5:23 AM  

  • Hi burning flame,
    I guess that's due to Google blogger's limitation, you can only import at most 50 entries within one day. after that, It seems been imported but not without errors.
    please try it after 24 hours.

    more faq on
    http://code.google.com/p/blogsync-java/wiki/BlogsyncFAQ

    By Blogger Yichao, At 9:28 AM  

  • @Yichao

    Yes, you were right. I continued today and moved all the post until August. Tomorrow I will finish, I guess. I was really enjoing this programme. Thanks again!

    By Blogger burning flame, At 3:18 AM  

  • Yichao, I am also a Mac user. Forgive my ignorance, but what is the terminal and where can I find it to type in sh run:sh?

    By Blogger pinksundrops, At 7:58 AM  

  • Well I've kind of figured out the terminal. But when I type in the path then sh run.sh this is the message I get:

    Exception in thread "main" java.lang.NoClassDefFoundError: org/easter/blogsync/BlogSync

    By Blogger pinksundrops, At 8:07 AM  

  • @pinksundrops
    check this
    http://code.google.com/p/blogsync-java/wiki/BlogsyncFAQ
    the answer to
    why do I get Exception in thread "main" java.lang.NoClassDefFoundError: org/easter/blogsync/BlogSync?

    if you are on Mac or unix, please make sure you have read permission on blogsync/build/blogsync.jar file if not, open a terminal and type:
    chmod 744 /path/to/your/blogsync/build/blogsync.jar

    By Blogger Yichao, At 9:27 AM  

  • First of all, I was looking forward a tool like this to move from wordpress to blogspot, thank you Yichao...

    Here are a few comments for improvement and a question:
    1.I think the tool needs to be shut down and re-opened after each settings change or any WP post readings. At least I made it work like that :)
    2.When entering the WP address, DO NOT put a "/" at the end of the blog address or the tool makes double slashes which is a problem.
    3.When I try to import my posts from my own WP blog, it only imports each blog partially until the "<.!--more--.>" part :( So most of my blogs contain that and the tool fails to import all of my posts. Is it possible to overcome this problem without fixing my all posts?

    Hope to hear good news... :)

    Thank you

    By Blogger Goktug, At 4:36 AM  

  • hi can anybody tell how to convert wordpress template to blogspot?
    really wanna know that :(
    10x

    By Blogger A, At 1:45 PM  

  • I was able to log into wordpress and download my blogs but I can't connect to blogger to upload: "cannot log into blogger account: Invalid Credentials" error the first entry and then "unauthorized" each subsequent entry.

    I have blogsync-with-gui and have the settings correct (username/password logs me in on blogger site and blogID is from Posting tab). Any suggestions? Thanks for the help in advance.

    By Blogger Elia, At 7:38 AM  

  • @Goktug
    I have no time to change the source code recently. Sorry about that.

    @a
    I have no idea about that.
    Google it.

    @Elia
    Please disable "Import Comment" function. Try again. Good Luck.
    This function can not be used now. It is not developed by public Google API.

    By Blogger Yichao, At 9:57 AM  

  • Thank you for responding. I looked through the files in the directory and ran the app but don't see an option to disable "Import Comment." I would appreciate it if you could point out to me where to find that?

    By Blogger Elia, At 10:43 AM  

  • @Elia
    Are you using v0.3 from
    http://code.google.com/p/blogsync-java/downloads/list

    it means uncheck the "import comment" checkbox

    By Blogger Yichao, At 12:36 PM  

  • Yes, thank you. I was using blogsync-with-gui.tar.gz, which didn't have that option. I switched to blogsync-0.3. It is able to access WordPress blog, download posts but still cannot upload to Blogger. Same error message as before: Invalid Credentials and Unauthorized. I double-checked login and password and id and made sure import comments was not checked. Any further ideas?

    By Blogger Elia, At 10:46 PM  

  • Thanks so much. This worked well! One of the keys for me was to not use the http:// before my wordpress url, just the url.

    By Blogger Ethan, At 1:55 PM  

Post a Comment

Subscribe to Post Comments [Atom]



Links to this post:

Create a Link

<< Home