Repository navigation
v0.2.0
Behaviour changes in this batch.
- A local engine no longer BUYS a captcha solve. None of them injects a
token into the page, so a bought token could never clear a challenge;
the page is now reported blocked (exit 3) without creating a 2Captcha
task. Before, one blocked page bought one solve per scroll round (5 with
default flags, 21 with--max-scrolls 20 --stall-rounds 20).
--cdp-endpointis unaffected.- A served page whose own "N Products" counter states products while the
parser recognises none now exits 5 with a sidecar
(status: failed,stop_reason: parser_found_nothing,
output_written: false), instead of exit 4 "no products".- A run that collected rows and was then blocked or hit a remote error
now exits 6 (partial) instead of 3/5;stop_reasonkeeps the cause.- Negative
--retries,--retry-delay,--scroll-delayand
--proxy-block-retries, and a--min-scoreoutside 0..1, are usage
errors (exit 2) in every engine. Selenium and pyppeteer used to accept a
negative--retriesand never navigate.--urltogether with--query/--categoryis a usage error (exit 2).
ALIDL_URLfrom the environment or.envno longer overrides a typed
--query/--category, and.env.exampleships it commented out.
Fixed — 2026-10-14 audit
- Output files and the sidecar are written atomically (temp file in the
same directory, fsync, rename), so an interrupted write leaves the
previous file intact instead of a truncated one. New files follow the
umask; an existing file keeps its mode. - CSV output prefixes text cells starting with
=,+,-,@, a tab or
a line break with', so a spreadsheet does not execute them. JSON is
unchanged; the sidecar recordscsv_cells_escaped. - Paid captcha solves go through one per-page allowance
(captcha_solver.SolveBudget,SOLVES_PER_PAGE = 1) checked before any
purchase and shared by every scroll round. - The sidecar's
stop_reasonnow says why the run ended (max_results,
stalled,max_scrolls,incomplete_grid,scroll_failed,
parser_found_nothing,navigation_failed,blocked, …) instead of
repeatingstatus. diff_runs.pyrefuses runs that started from different URLs or carry
differentzip_code/store_idvalues, and compares prices as numbers,
so the same run saved as JSON and as CSV no longer diffs as "changed"..gitignorecovers every renamed.envcopy (.env.bak,.env.local,
…) and raw dump directories and files (live/,out/,*.pageN, a
root-level*.html).- The credential scan is one script,
.github/ci_checks.py, run by CI and
bysmoke_test.py. It now also catches unquoted and JSON-escaped key
fields, bare 32-hex keys and URLs with embedded credentials, scans
untracked files, and skips virtualenvs bypyvenv.cfg. - The numeric argparse validators live in one module (
run_policy.py) and
are shared by all three engines. - The canary's Scraping Browser job fails, naming the missing
LIDL_CDP_ENDPOINTsecret, instead of skipping green; the local job also
checks that core columns are non-null on every row. - Comments and docs no longer cite private maintainer notes.