This project could download videos and pictures that you likes in your tumblr account. This is based on tumblr API and need authentication, so you need to get an oauth key by register an application. You can check it on this.
- normal
pip install -r requirements.txt
python run.py
- or
run.exe
-
First, you need to get the authentication for using tumblr api, look at that. You just need to get the authentication once when you first run this code.
-
When you register an application, you will get the consumer_key and the consumer_secret. Then fill it in
get_json.py
, and runpython get_json_v2.py
to collect your likes items. By the way, you can also view the result on this.
python get_json_v3.py
you can turn off share after download complete if you want.
-
The return data is json type and named
likes.json
, then you need runpython json_parse.py
. This could parse thelikes.json
file and pick up the raw url about pictures and videos and write those in aurl_list.txt
file. -
Last, run
python download.py
to download pictures, videos in a directory named download. -
Simplely:1
python get_json_v2.py
2python json_parse.py
3download.py
-
download_thread.py
anddownload_process.py
also could be used to download and replacedownload.py
. Actually it's faster thandownload.py
.
-
Because of some reasons, you can't access tumblr in some regions. So maybe you need a proxy like me. But if you are lucky, you need to change code as follows in
download.py
.# PROXIES = { "http": "http://127.0.0.1:1080", "https": "https://127.0.0.1:1080" } PROXIES = {}
-
This project is to download your likes pictures and videos in your account, which mean you should have an oauth key by register an application. If you just want to download pictures or videos in someone's account, you should try this.
-
run.exe
is pass test in win7 64bit and win10 64bit os. Using proxy by local 1080 port and download by mutil thread.