Skip to content

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:

sh
cargo install yandex

Save your first archive ​

sh
yandex "Macro photography nature" --limit 25 --output nature --offline --progress

This creates the nature folder:

PathContents
index.jsonEvery attempted original: source, URL, size, format, and decision
images/Originals that were kept
review/Originals that need a look (see Configuration)
index.htmlThe 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:

text
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.html

When 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:

sh
yandex --serve --output galleries   # then open http://localhost:8787/

Or run the same server with Docker, without installing Rust.

Next steps ​

Released under the MIT License. Not affiliated with or endorsed by Yandex LLC.