Command line
text
yandex [OPTIONS] [INPUT]INPUT is a text query or a Yandex Images search, viewer, or similar-results URL. It is optional with --similar-to and --render-existing, and not used with --similar-to-file or --serve. Run yandex --help for the full text.
Archive options
| Option | Description |
|---|---|
-o, --output <DIR> | Archive folder (default yandex-archive). |
-l, --limit <N> | Maximum new distinct original URLs attempted (default 100). |
--max-pages <N> | Maximum result pages loaded (default 2). |
--domain <DOMAIN> | Site for text queries and generated similar searches. |
--offline / --no-offline | Build the offline gallery, or override offline = true from TOML. |
--config <FILE> | Read a TOML configuration file. |
--similar-to <IMAGE_ID> | Archive images similar to an archived image. |
--similar-to-file <FILE> | Add a picture from your computer and archive images similar to it. |
--from-html <FILE> | Import one browser-saved results page; INPUT is its URL. |
--on-challenge <auto|prompt|stop> | How to handle verification (default auto). |
--orientation, --kind, --color, --size, --format | Search hints sent to Yandex. |
--nonconforming <review|discard> | Where images that fail file rules go. |
--no-evaluation | Disable remote evaluation enabled in TOML. |
Output options
| Option | Description |
|---|---|
--progress | Show progress on stderr. |
--json | Print the final report as JSON, even in a terminal. |
Gallery options
| Option | Description |
|---|---|
--render-existing | Rebuild index.html from index.json, without network access. |
--serve | Serve the galleries in --output in the browser: create, browse, and curate. |
--bind <IP> | Address for --serve to listen on (default 127.0.0.1; 0.0.0.0 in a container). |
--port <N> | Port for --serve (default 8787; 0 picks a free port). |
Report
In a terminal, a run ends with a readable summary. When stdout is redirected, or with --json, it prints a JSON report:
| Field | Meaning |
|---|---|
stop | Why the run ended: limit, page_limit, saved_page, exhausted, repeated_page, or interrupted. |
pages | Result pages read. |
attempted | New originals tried. |
saved, review, discarded | Outcomes of new originals. |
duplicates | Results already archived, or identical to an archived file. |
unavailable | Failed, invalid, unsupported, or oversized originals. |
evaluation_failures | Evaluation requests that failed. |
warnings | Up to ten examples of problems. |
next_page | For a saved page: the next results URL to open and save. |
Exit status
| Status | Meaning |
|---|---|
| 0 | The run finished. |
| 1 | An error, including a verification challenge or HTTP 429. Completed work is kept. |
| 130 | Interrupted with Ctrl+C. Completed work is kept. |