gallery-dl
Command-line program to download image galleries and collections from several image hosting sites
What it is and what it does
gallery-dl is a command-line downloader for image galleries and collections hosted on multiple image sites. It accepts URLs, identifies the hosting site, and downloads all media in that collection to local storage. The tool supports cross-platform operation and offers extensive configuration through command-line flags and JSON configuration files, including filtering by metadata (chapter number, language, tags), custom file naming using template syntax, and authentication where required.
The package depends only on requests for HTTP operations, making installation straightforward. It includes optional support for video downloads (via yt-dlp or youtube-dl), advanced compression formats, YAML/TOML configuration parsing, and system keyring integration for stored credentials. The tool is actively maintained and supports current Python versions.
Use it for:
- Download all images from a Danbooru tag search or similar image board in one command
- Batch retrieve manga chapters from MangaDex with filtering by chapter range and language
- Extract images from a Twitter thread or other social media gallery with authentication
- Organize downloaded images using custom naming templates based on metadata like artist, date, or tags
- Automate recurring downloads from multiple galleries using configuration files and scheduled runs
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A command-line tool that downloads image galleries and collections from multiple image hosting sites by parsing URLs and extracting media with configurable naming and filtering.
Yes, if you need to download image galleries from supported hosting sites. The tool is actively maintained, has minimal dependencies, and supports current Python versions. The copyleft GPL-2.0-only license is permissive for personal use but requires attention if you plan to redistribute or embed it in proprietary software. No known security vulnerabilities.
Install
gallery-dl on PyPI
pip
pip install gallery-dluv
uv add gallery-dlpoetry
poetry add gallery-dlInstalling gallery-dl
Before you install
Low install friction with a single runtime dependency (requests). Active maintenance with a release 13 days ago. Supports modern Python versions (3.8 through 3.14) and runs on CPython and PyPy.
License in practice
Licensed under GPL-2.0-only (copyleft). Any derivative work or distribution must also be released under GPL-2.0-only; using this in proprietary software requires careful licensing review.
Quickstart
pip install gallery-dl
gallery-dl "https://danbooru.donmai.us/posts?tags=bonocho"
Requires Python 3.8 or later. Some features (video downloads, compression formats, browser cookies) require optional dependencies like yt-dlp, FFmpeg, brotli, or SecretStorage.
Verify before relying
- Whether the package handles rate-limiting or respects site robots.txt/terms of service by default
- Performance characteristics when downloading very large galleries (thousands of images)
- Specific list of all supported image hosting sites beyond the reference to external documentation
Package facts
| License | GPL-2.0-only (copyleft) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — requests |
| Maintenance | actively maintained — 13 days since the last release |
| First released | |
| Downloads | 400,772/month — #6,934 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gallery_dl-1.32.9-py3-none-any.whl
Keywords: image, gallery, downloader, crawler, scraper
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
icrawlericrawler is a lightweight, modular web crawler…
permissive · top 15,000 on PyPI
yt-dlpyt-dlp downloads audio and video from thousands…
permissive · top 5,000 on PyPI
DrissionGetDrissionGet is a multithreaded file downloader…
permissive · top 15,000 on PyPI
frappe-benchBench is a CLI tool for installing, updating,…
copyleft · top 15,000 on PyPI
DownloadKitDownloadKit is a multithreaded file downloader…
permissive · top 15,000 on PyPI
abx-dlA CLI tool that auto-detects and downloads…
permissive · top 15,000 on PyPI
extractcodeExtracts a wide range of archive formats (tar,…
permissive · top 15,000 on PyPI
youtube_dlCommand-line tool to download videos from…
permissive · top 15,000 on PyPI
ignoreDownloads and installs common .gitignore…
permissive · top 15,000 on PyPI
urlextractExtracts URLs from text by locating TLDs and…
permissive · top 5,000 on PyPI