Skip to content

python script to grab all the images from liked posts on tumblr

Notifications You must be signed in to change notification settings

xte/tumblr-liked-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

tumblr-liked-py

python script to grab all the images from the posts you've liked on tumblr.

prerequisites

debian/ubuntu

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

how to use

  1. register for developer API keys on tumblr https://www.tumblr.com/oauth/apps and place the consumer_key and consumer_secret in credentials.json.

  2. run python get_tokens.py and follow the prompts to get your oauth_token and oauth_token_secret and put them in credentials.json.

  3. 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 use tee: python run.py | tee urls.txt

  4. use wget or curl with parallel to grab all the images: cat urls.txt | egrep "^http" | parallel curl -q -O {}.

About

python script to grab all the images from liked posts on tumblr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages