Utility for downloading media from various image hosting websites.
Project description
gallery-dvk
gallery-dvk is a command-line program designed to download media from various media sharing websites: See Supported Sites
It is heavily inspired by gallery-dl, and if I were smart, I probably would have just forked gallery-dl, but I couldn't fully wrap my head around how the codebase works, so here we are. I may not be able to parse the code very well, but I've ripped off gallery-dl's user documentation pretty thoroughly here.
Contents:
Installation
gallery-dvk can be downloaded from it's PyPI package using pip:
pip3 install gallery-dvk
If you are installing from source, the following python packages are required:
- beautifulsoup4
- HTML-String-Tools
- Metadata-Magic
- Python-Print-Tools
- requests
- tqdm
- pillow (If using image stitching for Webtoon)
Usage
To use gallery-dvk call it with the URL you wish to download from:
gallery-dvk URL
You can also download a from a list of URLs from a text file:
gallery-dvk -i FILE
Use gallery-dvk --help
for a full list of command-line options. You can access aditional options and configuration using a config file.
Configuration
Configuration files for gallery-dvk are stored in JSON format.
Documentation
Documentation for all the available configuration options can be found at /docs/configuration.md
A default config file can be found at /docs/gallery-dvk.json A more in-depth example config file can be found at /docs/gallery-dvk-example.json
Location
gallery-dvk looks for config files in the following locations:
WINDOWS:
%APPDATA%\gallery-dvk\config.json
%USERPROFILE%\gallery-dvk\config.json
%USERPROFILE%\gallery-dvk.json
(%USERPROFILE%
usually refers to a user's home directory, i.e. C:\Users<username>)
LINUX/MAC/UNIX-BASED:
/etc/gallery-dvk.json
${HOME}/.config/gallery-dvk/config.json
${HOME}/.gallery-dvk.json
Authentication
Username and Password
Most extractors require login credentials to access some locked content, and some require login credentials to access the site at all.
You can set the necessary login information in your configuration file.
{
"transfur":
{
"username": "<USERNAME>",
"password": "<PASSWORD>"
}
}
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 Distributions
Built Distribution
File details
Details for the file gallery_dvk-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: gallery_dvk-0.4.1-py3-none-any.whl
- Upload date:
- Size: 76.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03f098b4ddb4db1298221094b51295d046aa958a759322b2164b0f81df1a230f |
|
MD5 | b85b9c8d411b3bcf674f86fc17348708 |
|
BLAKE2b-256 | fae98be40faa3f6b6db1109892cc87661558d8d0ac9865b972dbcd2229a64f2b |