gallery-dl
$ gallery-dl Community Low Riskgallery-dl is a Python command-line downloader supporting hundreds of image-hosting sites, comic archives, and social media galleries. It supports read-only JSON metadata resolution (-J / --resolve-json and -j / --dump-json), custom filename templates, and OAuth/cookie authentication.
brew install gallery-dl Specialized multi-site media extractor with declarative JSON resolution (-J); no MCP server covers hundreds of gallery extractors.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -J (--resolve-json), -j (--dump-json), -s (--simulate), --quiet, and --range slicing.
- Flags
-J(JSON resolve),-j(dump JSON), and-s(simulate)
Read-only -J/-s inspection modes, --range caps, and --filesize-max bounds prevent unbounded disk downloads.
- Supports
--simulate,--range, and--filesize-max
Available via Homebrew, PyPI, uvx, and standalone Windows executables across macOS, Linux, and Windows.
- Installable via
brew install gallery-dlandpip install gallery-dl
Broad extractor coverage (like yt-dlp for images) with archive deduplication (--download-archive) and metadata sidecars.
- Supports hundreds of sites with
--write-metadataand archive DBs
Very actively maintained community project (mikf/gallery-dl) under GPL-2.0 with frequent extractor updates.
- Frequent releases on
mikf/gallery-dl
Comprehensive configuration docs and --help covering extractors, filters, and output templates.
- Published configuration reference at
gdl-org.github.io/docs
Security, Auth & Guardrails
Stores optional site OAuth tokens and extractor credentials in ~/.config/gallery-dl/config.json or ~/.netrc.
Free, GPL-2.0 open-source Python package.
# gallery-dl Agent Rules - Always inspect galleries first with `-J` (`--resolve-json`) or `-s` (`--simulate`) and `--range 1-10`. - Specify `-D <dir>` (`--directory`) so downloads stay inside an explicit workspace folder. - Never run interactive `oauth:` setup subcommands in non-interactive shells.
Agent-Ready Command Recipes
Safe Read-Only Queries
gallery-dl -J --range 1-5 https://example.com/gallery
Resolves and prints JSON metadata (-J) for the first 5 items without writing media files to disk.
gallery-dl -s -g https://example.com/gallery
Simulates extraction (-s) and prints direct media URLs (-g) safely.
Controlled Writes & Previews
gallery-dl --range 1-10 --write-metadata -D ./downloads https://example.com/gallery
Downloads up to 10 items into ./downloads alongside .json metadata files.
Strengths for Agents
- +
-J(--resolve-json) and-s(--simulate) let agents inspect gallery contents safely before downloading. - + Rich filtering (
--range,--filter) and SQLite deduplication (--download-archive).
Caveats & Pitfalls
- ! Some extractors require OAuth or browser cookies (
--cookies-from-browser) configured beforehand. - ! Without
--range, a large gallery or profile URL can download thousands of files.