Getting started
yandex is an independent Rust command-line tool and library that archives Yandex Images results on your own disk. It saves original files and a JSON index, and can build an offline gallery to browse them. A normal run needs no account, browser automation, server, or AI provider.
Not affiliated with Yandex
This project is not affiliated with or endorsed by Yandex LLC. Content belongs to its respective owners. Archive only material you are allowed to access, and respect Yandex’s Terms of Use and rate limits.
Install
Install with Cargo, using Rust 1.89 or newer:
cargo install yandexSave your first archive
yandex "Macro photography nature" --limit 25 --output nature --offline --progressThis creates the nature folder:
| Path | Contents |
|---|---|
index.json | Every attempted original: source, URL, size, format, and decision |
images/ | Originals that were kept |
review/ | Originals that need a look (see Configuration) |
index.html | The offline gallery, created by --offline |
Open nature/index.html in a browser. --offline creates the gallery; it does not turn off the network while archiving.
Read the result
With --progress, a status line on stderr shows the current page, how many originals were tried, and what happened to them. When the run ends, a terminal gets a short summary:
yandex: ✓ page 1: 30 results, 26 new
yandex: ✓ page 2: 30 results, 30 new
✓ Read 2 results pages — the --max-pages limit. Raise it to continue.
Saved 56
In review 0
Duplicates 4 already archived or identical
Unavailable 0
Gallery file:///Users/you/nature/index.htmlWhen stdout is redirected, or with --json, the same report is printed as JSON. See Command line for its fields.
Prefer the browser?
Serve a folder and create galleries from a search box instead:
yandex --serve --output galleries # then open http://localhost:8787/Or run the same server with Docker, without installing Rust.
Next steps
- Archive a URL instead of a query: Choose an input.
- Raise the limits, resume, or stop early: Runs, limits, and resuming.
- Explore results visually: Offline gallery and Similar images.
- Create and curate galleries from the browser: Local server.