Artworks downloader
Project description
Artworks downloader
- artstation.com #usage
- deviantart.com #usage
- imgur.com #usage
- pixiv.net #usage #notes
- zettai.moe
- reddit.com #usage
- twitter.com #usage #notes
- wallhaven.cc #usage #notes
Install
Clone this repo, then from inside the project
python -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
Usage
usage: python -m art_dl [-h] [-u URL] [-l LIST] [--folder FOLDER] [--action ACTION] [-q] [-v]
Artworks downloader
options:
-h, --help show this help message and exit
-u URL, --url URL URL to download
-l LIST, --list LIST File with list of URLs to download
--folder FOLDER Folder to save artworks. Default folder - data
--action ACTION
-q, --quiet Do not show logs
-v, --verbose Show more logs
Sites with simple usage
Just run
python -m art_dl -u [URL here]
DeviantArt
You should have deviantart.com account, login to it, then
-
register an application
- go to https://www.deviantart.com/developers/apps
- click "Register Application"
- in field "OAuth2 Redirect URI Whitelist (Required)" under "Application Settings" block paste
http://localhost:23445
- scroll to bottom and check "I have read and agree to the API License Agreement."
- click "Save"
- in the block with newly created application click "Publish"
-
save
client_id
andclient_secret
in this application- run
python -m art_dl --action deviantart:register
- paste needed values
-
authorize application
- open suggested link
- click "Authorize"
After that you can use it just like
python -m art_dl -u [URL here]
Proxy
Copy config.sample.json
to config.json
and fill "proxy":
{
"proxy": "proxy-url"
}
Notes
Pixiv
If the artwork has more one image, you can specify which images should be downloaded, for example, if the artwork has 10 images and you want to download 1, 3, 4, 5 and 7 image, you can add #1,3-5,7
to the link for that: https://www.pixiv.net/<lang>/artworks/<id>#1,3-5,7
.
Here we use an alternative frontend for Twitter: https://nitter.net (Github)
Wallhaven
NSFW images supported only with API key, to use it, get it from account settings, then run
python -m art_dl --action wallhaven:key
Supported URL types
- artstation.com
https://www.artstation.com/artwork/<hash>
https://www.artstation.com/<artist>
- deviantart.com
- All deviations
https://www.deviantart.com/<artist>
https://www.deviantart.com/<artist>/gallery/all
- "Featured" collection
https://www.deviantart.com/<artist>/gallery
https://www.deviantart.com/<artist>/gallery/<some number>/<gallery name>
https://www.deviantart.com/<artist>/art/<name>
- All deviations
- imgur.com
https://imgur.com/a/<id>
https://imgur.com/gallery/<id>
https://imgur.com/t/<tag>/<id>
- pixiv.net
-
https://www.pixiv.net/artworks/<id>
-
https://www.pixiv.net/<lang>/artworks/<id>
-
Other sites with the same content as pixiv:
https://zettai.moe/detail?id=<id>
-
- reddit.com
https://redd.it/<id>
https://www.reddit.com/comments/<id>
https://www.reddit.com/r/<subreddit>/comments/<id>/<any name>
- twitter.com
https://(mobile.)twitter.com/<account>/status/<id>
https://nitter.net/<account>/status/<id>
- wallhaven.cc
https://wallhaven.cc/w/<id>
https://whvn.cc/<id>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for art_dl-0.1.0rc1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b00eef90d82b511a15d39053628a78de88c549af4b05f6286069aeee52aaa82d |
|
MD5 | c63b551b164ab9d230a5c4b1f92fe422 |
|
BLAKE2b-256 | e01624c1322d0f5f2a38f2a4a806c5bb3eee0a3106202d258a1c64338d30b294 |