This is to import photo posts from another blog in Tumblr.
Before import, you should have a new blog created and a posts.xml
file which is exported from Tumblr (https://www.tumblr.com/settings/blog/{blog_name}). Replace the downloaded posts.xml
file with the existing one.
Then you should register an application and get the keys on the API console.
Input the fields when running the command. The fields are:
- consumer_key
- consumer_secret
- token
- token_secret
- idenifier - the blog name
- slot_count - it defines the number of posts in each slots. Each slots will run in parallel.
run npm run import
to import photo posts from the posts.xml
file.
run npm run erase
to remove all posts in the blog.