- Copy the content of
src
into your shaarli instance (at its root with index.php) - Copy
tumblr.ini.dev
totumblr.ini
- Fill the
tumblr.ini
's variables
tumblr = xxx.tumblr.com # your tumblr URL (can be another domain if you paid for it)
api_key = xxx # your tumblr's API key (see below)
private = true # if links should be private or public
shaarli_dir = # leave blank if you followed this tutorial, else, the path to shaarli
- Check if you got write right on the folder containing
import.php
- Launch : via browser or via command line
You need to register an app in tumblr :
- Log in your tumblr account
- Go to https://www.tumblr.com/oauth/apps
- Click
Register an application
- Fill all mandatory fields +
website
(even if it's not marked as mandatory, trust me, it is) - You got it ! OAuth Consumer Key !
- Tips : you can find it again in https://www.tumblr.com/settings/apps
Tumblr's API can only retrieve 20 × 250 posts (I did the math, it's 5000)
This script does not resume import, so if you got more than 5k posts, it won't work.