Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

gallery-dl

$ gallery-dl Community Low Risk
mikf · Browser & Web · GPL-2.0 · macos / linux / windows

gallery-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.

FCRS-1.0 Score
86 /100
Good
Medium Confidence
Zero-Friction Install
brew install gallery-dl
CLI vs MCP Decision CLI Only

Specialized multi-site media extractor with declarative JSON resolution (-J); no MCP server covers hundreds of gallery extractors.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Supports -J (--resolve-json), -j (--dump-json), -s (--simulate), --quiet, and --range slicing.

  • Flags -J (JSON resolve), -j (dump JSON), and -s (simulate)
Trust & Safety 21 / 25

Read-only -J/-s inspection modes, --range caps, and --filesize-max bounds prevent unbounded disk downloads.

  • Supports --simulate, --range, and --filesize-max
Setup & Portability 14 / 15

Available via Homebrew, PyPI, uvx, and standalone Windows executables across macOS, Linux, and Windows.

  • Installable via brew install gallery-dl and pip install gallery-dl
Utility & Efficiency 14 / 15

Broad extractor coverage (like yt-dlp for images) with archive deduplication (--download-archive) and metadata sidecars.

  • Supports hundreds of sites with --write-metadata and archive DBs
Maintenance & Lineage 8 / 10

Very actively maintained community project (mikf/gallery-dl) under GPL-2.0 with frequent extractor updates.

  • Frequent releases on mikf/gallery-dl
Docs & Verifiability 8 / 10

Comprehensive configuration docs and --help covering extractors, filters, and output templates.

  • Published configuration reference at gdl-org.github.io/docs

Security, Auth & Guardrails

Auth Modes
No Auth OAuth Browser Config File
Credential Storage

Stores optional site OAuth tokens and extractor credentials in ~/.config/gallery-dl/config.json or ~/.netrc.

Side Effects
Read-Only Local Write
Cost & Quotas

Free, GPL-2.0 open-source Python package.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Resolve gallery metadata as JSON without downloading
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.

Simulate download paths without fetching files
gallery-dl -s -g https://example.com/gallery

Simulates extraction (-s) and prints direct media URLs (-g) safely.

Controlled Writes & Previews

Download bounded media items with JSON sidecar metadata
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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI