Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including press2blogger with all npm packages installed. Try it out:

var press2blogger = require("press2blogger")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

press2blogger v1.0.3

Moving or backing up your Wordpress site to Blogger


oclif Version CircleCI Appveyor CI Codecov Downloads/week License

A node command line application (CLI) that could help you move or backup your current website from Wordpress to Blogger.

This is still in its early stages of development, so do expect bugs and errors. So that, please open issue here to make it better. Your contributions are very welcome!

press2blogger is written in TypeScript using oclif (a Node.JS Open CLI Framework).


  • Node 8.0+


$ npm install -g press2blogger
# Usage


$ press2blogger [WP_SITE_URL] [BLOGGER_ID]


-f, --force        update post in local storage if exists
-h, --help         show CLI help
-l, --limit=limit  <number> maximum post items to fetch (default: all)
-o, --output       <boolean> get posts from local storage and generate XML file
-p, --publish      <boolean> publish a post after synchronizing
-s, --start=start  <number> start page to fetch (default: 1) or start offset to query from local storage (default: 0)
-u, --upload       <boolean> upload post images from host to blogger (picasa)
-v, --version      show CLI version


  1. Backup all posts from to my sample blogger (using v1.0.0)

  1. ... More examples will come soon !


1. Current album is full, please create a new one manually...

Because Google was not allow create an album by API anymore.. so that when facing this warning, you should create an album manually before continue

  • Open your browser and create/edit a post on your current blog
  • Click "Insert Image" on toolbar, then upload an picture from computer.
  • After upload success, Google Photos will create new album for your blog, you can back to the console and confirm "Yes" to continue

2. Upload error: ... UNKNOWN_ERROR

Sometimes Google return error when calling upload API, so if you get this error, just wait for some minutes and press "Yes" to retry You can also skip uploading some images and move to next post if "Retry" not working

Change Logs


  • Fix bug when run with option "--output"


  • Check and re-create access_token everytime before calling APIs
  • Prompt user to retry upload/download images when fail


  • Support some options: --upload, --publish, --start, --limit, --output
  • Make output messages more beautiful
  • Fix some minor bugs when synchorinzing post and images


  • First release with simple commnand


  • [ ] Check if image is already exist then skipping download/upload
  • [x] Re-create access_token when it expired when process still running


MIT © Ngoc L.B.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free