2023-01-02 19:14:16 +01:00
|
|
|
# Command-Line Options
|
|
|
|
|
|
|
|
<!-- auto-generated by scripts/options.py -->
|
|
|
|
|
2023-01-03 16:04:48 +01:00
|
|
|
|
2023-01-06 11:21:47 +01:00
|
|
|
## General Options:
|
|
|
|
-h, --help Print this help message and exit
|
|
|
|
--version Print program version and exit
|
|
|
|
-f, --filename FORMAT Filename format string for downloaded files
|
|
|
|
('/O' for "original" filenames)
|
2023-01-30 20:07:18 +01:00
|
|
|
-d, --destination PATH Target location for file downloads
|
|
|
|
-D, --directory PATH Exact location for file downloads
|
|
|
|
-X, --extractors PATH Load external extractors from PATH
|
2023-01-06 11:21:47 +01:00
|
|
|
--user-agent UA User-Agent request header
|
|
|
|
--clear-cache MODULE Delete cached login sessions, cookies, etc. for
|
|
|
|
MODULE (ALL to delete everything)
|
|
|
|
|
2024-06-15 23:29:09 +02:00
|
|
|
## Update Options:
|
|
|
|
-U, --update Update to the latest version
|
|
|
|
--update-to CHANNEL[@TAG] Switch to a dfferent release channel (stable or
|
|
|
|
dev) or upgrade/downgrade to a specific version
|
|
|
|
--update-check Check if a newer version is available
|
|
|
|
|
2023-11-14 20:38:11 +01:00
|
|
|
## Input Options:
|
|
|
|
-i, --input-file FILE Download URLs found in FILE ('-' for stdin).
|
|
|
|
More than one --input-file can be specified
|
|
|
|
-I, --input-file-comment FILE
|
|
|
|
Download URLs found in FILE. Comment them out
|
|
|
|
after they were downloaded successfully.
|
|
|
|
-x, --input-file-delete FILE
|
|
|
|
Download URLs found in FILE. Delete them after
|
|
|
|
they were downloaded successfully.
|
2024-06-16 18:31:39 +02:00
|
|
|
--no-input Do not prompt for passwords/tokens
|
2023-11-14 20:38:11 +01:00
|
|
|
|
2023-01-06 11:21:47 +01:00
|
|
|
## Output Options:
|
|
|
|
-q, --quiet Activate quiet mode
|
2024-04-20 21:00:26 +02:00
|
|
|
-w, --warning Print only warnings and errors
|
2023-01-06 11:21:47 +01:00
|
|
|
-v, --verbose Print various debugging information
|
|
|
|
-g, --get-urls Print URLs instead of downloading
|
|
|
|
-G, --resolve-urls Print URLs instead of downloading; resolve
|
|
|
|
intermediary URLs
|
|
|
|
-j, --dump-json Print JSON information
|
2024-07-26 20:36:04 +02:00
|
|
|
-J, --resolve-json Print JSON information; resolve intermediary
|
|
|
|
URLs
|
2023-01-06 11:21:47 +01:00
|
|
|
-s, --simulate Simulate data extraction; do not download
|
|
|
|
anything
|
|
|
|
-E, --extractor-info Print extractor defaults and settings
|
|
|
|
-K, --list-keywords Print a list of available keywords and example
|
|
|
|
values for the given URLs
|
2023-12-05 20:49:51 +01:00
|
|
|
-e, --error-file FILE Add input URLs which returned an error to FILE
|
2024-10-20 10:06:04 +02:00
|
|
|
-N, --print [EVENT:]FORMAT Write FORMAT during EVENT (default 'prepare') to
|
|
|
|
standard output. Examples: 'id' or
|
|
|
|
'post:{md5[:8]}'
|
|
|
|
--print-to-file [EVENT:]FORMAT FILE
|
|
|
|
Append FORMAT during EVENT to FILE
|
2023-01-06 11:21:47 +01:00
|
|
|
--list-modules Print a list of available extractor modules
|
2024-09-07 22:41:02 +02:00
|
|
|
--list-extractors CATEGORIES
|
|
|
|
Print a list of extractor classes with
|
2023-01-06 11:21:47 +01:00
|
|
|
description, (sub)category and example URL
|
|
|
|
--write-log FILE Write logging output to FILE
|
|
|
|
--write-unsupported FILE Write URLs, which get emitted by other
|
|
|
|
extractors but cannot be handled, to FILE
|
|
|
|
--write-pages Write downloaded intermediary pages to files in
|
|
|
|
the current directory to debug problems
|
2024-07-26 20:36:04 +02:00
|
|
|
--print-traffic Display sent and read HTTP traffic
|
2024-04-20 21:00:26 +02:00
|
|
|
--no-colors Do not emit ANSI color codes in output
|
2023-01-06 11:21:47 +01:00
|
|
|
|
2024-06-15 23:29:09 +02:00
|
|
|
## Networking Options:
|
2023-01-06 11:21:47 +01:00
|
|
|
-R, --retries N Maximum number of retries for failed HTTP
|
2024-04-20 21:00:26 +02:00
|
|
|
requests or -1 for infinite retries (default: 4)
|
2023-01-06 11:21:47 +01:00
|
|
|
--http-timeout SECONDS Timeout for HTTP connections (default: 30.0)
|
2024-06-15 23:29:09 +02:00
|
|
|
--proxy URL Use the specified proxy
|
|
|
|
--source-address IP Client-side IP address to bind to
|
|
|
|
--no-check-certificate Disable HTTPS certificate validation
|
|
|
|
|
|
|
|
## Downloader Options:
|
|
|
|
-r, --limit-rate RATE Maximum download rate (e.g. 500k or 2.5M)
|
|
|
|
--chunk-size SIZE Size of in-memory data chunks (default: 32k)
|
2023-01-06 11:21:47 +01:00
|
|
|
--sleep SECONDS Number of seconds to wait before each download.
|
|
|
|
This can be either a constant value or a range
|
|
|
|
(e.g. 2.7 or 2.0-3.5)
|
|
|
|
--sleep-request SECONDS Number of seconds to wait between HTTP requests
|
|
|
|
during data extraction
|
|
|
|
--sleep-extractor SECONDS Number of seconds to wait before starting data
|
|
|
|
extraction for an input URL
|
|
|
|
--no-part Do not use .part files
|
|
|
|
--no-skip Do not skip downloads; overwrite existing files
|
|
|
|
--no-mtime Do not set file modification times according to
|
|
|
|
Last-Modified HTTP response headers
|
|
|
|
--no-download Do not download any files
|
|
|
|
|
|
|
|
## Configuration Options:
|
2023-02-28 21:54:46 +01:00
|
|
|
-o, --option KEY=VALUE Additional options. Example: -o browser=firefox
|
2023-01-06 11:21:47 +01:00
|
|
|
-c, --config FILE Additional configuration files
|
2023-02-28 21:54:46 +01:00
|
|
|
--config-yaml FILE Additional configuration files in YAML format
|
|
|
|
--config-toml FILE Additional configuration files in TOML format
|
2023-03-01 14:49:40 +01:00
|
|
|
--config-create Create a basic configuration file
|
2024-06-13 23:08:11 +02:00
|
|
|
--config-status Show configuration file status
|
|
|
|
--config-open Open configuration file in external application
|
2023-02-28 21:54:46 +01:00
|
|
|
--config-ignore Do not read default configuration files
|
2023-01-06 11:21:47 +01:00
|
|
|
|
|
|
|
## Authentication Options:
|
|
|
|
-u, --username USER Username to login with
|
|
|
|
-p, --password PASS Password belonging to the given username
|
|
|
|
--netrc Enable .netrc authentication data
|
|
|
|
|
2023-05-06 17:40:55 +02:00
|
|
|
## Cookie Options:
|
|
|
|
-C, --cookies FILE File to load additional cookies from
|
|
|
|
--cookies-export FILE Export session cookies to FILE
|
|
|
|
--cookies-from-browser BROWSER[/DOMAIN][+KEYRING][:PROFILE][::CONTAINER]
|
|
|
|
Name of the browser to load cookies from, with
|
|
|
|
optional domain prefixed with '/', keyring name
|
|
|
|
prefixed with '+', profile prefixed with ':',
|
|
|
|
and container prefixed with '::' ('none' for no
|
2024-08-14 18:34:17 +02:00
|
|
|
container (default), 'all' for all containers)
|
2023-05-06 17:40:55 +02:00
|
|
|
|
2023-01-06 11:21:47 +01:00
|
|
|
## Selection Options:
|
|
|
|
-A, --abort N Stop current extractor run after N consecutive
|
|
|
|
file downloads were skipped
|
|
|
|
-T, --terminate N Stop current and parent extractor runs after N
|
|
|
|
consecutive file downloads were skipped
|
2024-06-15 23:29:09 +02:00
|
|
|
--filesize-min SIZE Do not download files smaller than SIZE (e.g.
|
|
|
|
500k or 2.5M)
|
|
|
|
--filesize-max SIZE Do not download files larger than SIZE (e.g.
|
|
|
|
500k or 2.5M)
|
|
|
|
--download-archive FILE Record all downloaded or skipped files in FILE
|
|
|
|
and skip downloading any file already in it
|
2023-01-06 11:21:47 +01:00
|
|
|
--range RANGE Index range(s) specifying which files to
|
|
|
|
download. These can be either a constant value,
|
|
|
|
range, or slice (e.g. '5', '8-20', or '1:24:3')
|
|
|
|
--chapter-range RANGE Like '--range', but applies to manga chapters
|
|
|
|
and other delegated URLs
|
|
|
|
--filter EXPR Python expression controlling which files to
|
|
|
|
download. Files for which the expression
|
|
|
|
evaluates to False are ignored. Available keys
|
|
|
|
are the filename-specific ones listed by '-K'.
|
|
|
|
Example: --filter "image_width >= 1000 and
|
|
|
|
rating in ('s', 'q')"
|
|
|
|
--chapter-filter EXPR Like '--filter', but applies to manga chapters
|
|
|
|
and other delegated URLs
|
|
|
|
|
|
|
|
## Post-processing Options:
|
2023-11-16 17:37:15 +01:00
|
|
|
-P, --postprocessor NAME Activate the specified post processor
|
2024-06-15 23:29:09 +02:00
|
|
|
--no-postprocessors Do not run any post processors
|
2023-11-16 17:37:15 +01:00
|
|
|
-O, --postprocessor-option KEY=VALUE
|
|
|
|
Additional post processor options
|
|
|
|
--write-metadata Write metadata to separate JSON files
|
|
|
|
--write-info-json Write gallery metadata to a info.json file
|
|
|
|
--write-tags Write image tags to separate text files
|
2023-01-06 11:21:47 +01:00
|
|
|
--zip Store downloaded files in a ZIP archive
|
2023-11-14 23:10:31 +01:00
|
|
|
--cbz Store downloaded files in a CBZ archive
|
2023-11-16 17:37:15 +01:00
|
|
|
--mtime NAME Set file modification times according to
|
|
|
|
metadata selected by NAME. Examples: 'date' or
|
|
|
|
'status[date]'
|
2024-08-30 18:22:46 +02:00
|
|
|
--rename FORMAT Rename previously downloaded files from FORMAT
|
|
|
|
to the current filename format
|
|
|
|
--rename-to FORMAT Rename previously downloaded files from the
|
2024-09-03 21:13:19 +02:00
|
|
|
current filename format to FORMAT
|
2024-08-30 18:22:46 +02:00
|
|
|
--ugoira FMT Convert Pixiv Ugoira to FMT using FFmpeg.
|
2023-11-16 17:15:17 +01:00
|
|
|
Supported formats are 'webm', 'mp4', 'gif',
|
2024-10-20 10:06:04 +02:00
|
|
|
'vp8', 'vp9', 'vp9-lossless', 'copy', 'zip'.
|
2023-10-09 12:50:10 +02:00
|
|
|
--exec CMD Execute CMD for each downloaded file. Supported
|
|
|
|
replacement fields are {} or {_path},
|
|
|
|
{_directory}, {_filename}. Example: --exec
|
|
|
|
"convert {} {}.png && rm {}"
|
2023-11-16 17:37:15 +01:00
|
|
|
--exec-after CMD Execute CMD after all files were downloaded.
|
|
|
|
Example: --exec-after "cd {_directory} &&
|
|
|
|
convert * ../doc.pdf"
|