Gallery-DL is a powerful command-line program designed to download image galleries and collections from various websites. It provides a convenient way to download entire galleries or collections with just a few simple commands. For videos see yt-dlp.
Command-Line Options
Usage: gallery-dl [url]
General Options:
Option
Description
-f, --filename FORMAT
Filename format string for downloaded files (‘/O’ for “original” filenames)
-d, --destination PATH
Target location for file downloads
-D, --directory PATH
Exact location for file downloads
-X, --extractors PATH
Load external extractors from PATH
--proxy URL
Use the specified proxy
--source-address IP
Client-side IP address to bind to
--user-agent UA
User-Agent request header
--clear-cache MODULE
Delete cached login sessions, cookies, etc. for MODULE (ALL to delete everything)
Input Options:
Option
Description
-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.
Output Options:
Option
Description
-q, --quiet
Activate quiet mode
-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
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 container’)
Selection Options:
Option
Description
--download-archive FILE
Record all downloaded or skipped files in FILE and skip downloading any file already in it
-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
--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