python script to grab all the images from the posts you've liked on tumblr.
- python
- oauth2
- pytumblr https://github.com/tumblr/pytumblr
- gnu parallel
you can install pytumblr if you want, or just clone the repository and create a symlink.
sudo apt-get install python python-oauth2 git parallel
git clone https://github.com/tumblr/pytumblr gh-pytumblr
ln -s gh-pytumblr/pytumblr pytumblr
-
register for developer API keys on tumblr https://www.tumblr.com/oauth/apps and place the
consumer_key
andconsumer_secret
incredentials.json
. -
run
python get_tokens.py
and follow the prompts to get youroauth_token
andoauth_token_secret
and put them incredentials.json
. -
run
python run.py
. this will print to STDOUT all the URLs of the images of posts you've liked. i suggest redirecting it to a file or usetee
:python run.py | tee urls.txt
-
use
wget
orcurl
withparallel
to grab all the images:cat urls.txt | egrep "^http" | parallel curl -q -O {}
.