Skip to main content

Artworks downloader

Project description

Artworks downloader

PyPI

Supported sites

Supported URL types

Install

With pip

pip install -U art-dl

Then run as art-dl: #usage

Build from source

You need poetry, install it, then run from inside the project

poetry install --no-dev

# run with poetry
poetry run python -m art_dl

# enter venv created with poetry
poetry shell
# run inside it as
python -m art_dl
# or
art-dl

# create and activate venv, e.g. with virtualenvwrapper, then
poetry install --no-dev
art-dl

Alternatively, build binary with nuitka:

poetry install
poetry shell
python -m nuitka art_dl

After that you will have binary in the root directory.

Usage

usage: art-dl [-h] [-u URL] [-l LIST] [--folder FOLDER] [--action ACTION] [-q] [-v] [--version]

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, one URL per line
  --folder FOLDER       Folder to save artworks. Default folder - data
  --action ACTION
  -q, --quiet           Do not show logs
  -v, --verbose         Show more logs
  --version             Show version

Sites with simple usage

Just run

# download single url
art-dl -u [URL]
# download urls from file with list of urls, one url per line
art-dl -l [file with list of urls]

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 and client_secret in this application

    • run
    art-dl --action deviantart:register
    
    • paste needed values
  • authorize application

    • open suggested link
    • click "Authorize"

After that you can use it as other sites: #usage

Proxy

Run

art-dl --action config:proxy

Enter proxy, for example, socks5://localhost:1080

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.

Twitter

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

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>
  • 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/gallery/<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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

art_dl-0.2.7.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

art_dl-0.2.7-py3-none-any.whl (31.9 kB view details)

Uploaded Python 3

File details

Details for the file art_dl-0.2.7.tar.gz.

File metadata

  • Download URL: art_dl-0.2.7.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/6.0.2-arch1-1

File hashes

Hashes for art_dl-0.2.7.tar.gz
Algorithm Hash digest
SHA256 010602adaf8360dee56177b55105bd9e9934dd2aaa57a0767e16afbe35fc7a8e
MD5 0ce620effdb55d4e0a0b0d339277a19d
BLAKE2b-256 ea8191b2efd89d679d6cd0553e461bc2d291b9fd82a77abd577df985277d38c5

See more details on using hashes here.

File details

Details for the file art_dl-0.2.7-py3-none-any.whl.

File metadata

  • Download URL: art_dl-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 31.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/6.0.2-arch1-1

File hashes

Hashes for art_dl-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d93068fd46203541ad18f52e1ad103adee1e9d0ab30dad2d1bc0a85fd93c07ba
MD5 8a3b51a8ff27d86f084bfd4a5b11da63
BLAKE2b-256 ab287c73e114cf4ef40306c69816766eb98d92fd876f9f7f5551320aa6f31f55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page