gallery-dl is a command-line program to download image galleries and collections from several image hosting sites (see Supported Sites ). It is a cross-platform tool with many command-line and configuration options, as well as powerful file-naming capabilities .
Dependencies Optional
Installation Pip Standalone Executable Nightly Builds Snap Chocolatey Scoop Homebrew MacPorts Docker Nix and Manager
Standalone Executable
Configuration Documentation Locations
Authentication Username & Password Cookies OAuth
yt-dlp or youtube-dl : HLS/DASH video downloads, ytdl integration
FFmpeg : Pixiv Ugoira conversion
mkvmerge : Accurate Ugoira frame timecodes
PySocks : SOCKS proxy support
brotli or brotlicffi : Brotli compression support
zstandard : Zstandard compression support
PyYAML : YAML configuration file support
toml : TOML configuration file support for Python \ )
${XDG_CONFIG_HOME}/gallery-dl/config.json
${ }/.config/gallery-dl/config.json
${ }/.gallery-dl.conf
When run as executable , gallery-dl will also look for a gallery-dl.conf file in the same directory as said executable.
It is possible to use more than one configuration file at a time. In this case, any values from files after the first will get merged into the already loaded settings and potentially override ones.
You can set the necessary information in your configuration file
or you can provide them directly via the -u/--username and -p/--password or via the -o/--option command-line options
For sites where login with username & password is not possible due to CAPTCHA or similar, or has not been implemented yet, you can use the cookies from a browser login session and input them into gallery-dl .
This can be done via the cookies option in your configuration file by specifying
the path to a Mozilla/Netscape format cookies.txt file exported by a browser addon (e.g. Get cookies.txt LOCALLY for Chrome, Export Cookies for Firefox)
a list of name-value pairs gathered from your browser's web developer tools (in Chrome , in Firefox )
the name of a browser to extract cookies from (supported browsers are Chromium-based ones, Firefox, and Safari)
gallery-dl supports user authentication via OAuth for some extractors. This is necessary for pixiv and optional for deviantart , flickr , , smugmug , tumblr , and mastodon instances.
Linking your account to gallery-dl grants it the ability to issue requests on your account's behalf and enables it to access resources which would otherwise be unavailable to a public user.
To do so, start by invoking it with oauth: as an argument. For example:
You will be sent to the site's authorization page and asked to grant read access to gallery-dl . Authorize it and you will be shown one or more "tokens", which should be added to your configuration file.
To authenticate with a mastodon instance, run gallery-dl with oauth:mastodon: as argument. For example:
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
