Migrating the blogs - having the content, image, comments, etc from wordpress to blogger seams bit complex at first. The below steps will make migration really very easy.
3. Run the 'bin/wordpress2blogger.sh' script with input - above downloaded file and output file.
[pooja@localhost google-blog-converters-appengine]$ bin/wordpress2blogger.sh ~/Downloads/leveragebigdata.wordpress.2016-12-29.xml >> blog.xml
Export the content from Wordpress
- Login the the wordpress dashboard.by opening https://<blog>.wordpress.com/wp-admin/ in the browser.
- On left Nav, select Tools -> Export
- Select 'All content'
- Click 'Download Export File'
- The XML file will be downloaded.
Convert the Wordpress to Blogger Format
The downloaded file needs to be converted to blogger file format so that it can be imported later to blogger.- Checkout the code from the github: https://github.com/pra85/google-blog-converters-appengine.
- go to the directory 'google-blog-converters-appengine'
3. Run the 'bin/wordpress2blogger.sh' script with input - above downloaded file and output file.
[pooja@localhost google-blog-converters-appengine]$ bin/wordpress2blogger.sh ~/Downloads/leveragebigdata.wordpress.2016-12-29.xml >> blog.xml
Import the file to blogger
The blogger format file generated by converter tool needs to be uploaded to blogger.
- Open https://www.blogger.com/ in browser.
- Navigate the left: Settings -> Other
- Click import content
- Click 'Import from computer' and browse to the converter generated file.
- The blogs will be imported and listed as below
- Publish the posts.
Handling Errors
- Error during execution of converter tool script:
Traceback (most recent call last):
File "bin/../src/wordpress2blogger/wp2b.py", line 26, in <module>
import gdata
ImportError: No module named gdata
Solution: sudo pip install gdata
The converter exits with the first date, which it claims is in the wrong format. The file is a straigh export from WP, though it's not an WXR, but an XML file.
ReplyDelete"ValueError: time data u'Mon, 28 Sep 2015 14:15:31' does not match format '%Y-%m-%d %H:%M:%S'"