Repository navigation
Behaviour changes. (1) The pyppeteer and Selenium engines now report an
HTTP 4xx/5xx page whose body names no known bot-check vendor as exit 5
(content never obtained) instead of exit 4 (empty category), and a page that
links to products but parses to none as exit 5 (stop_reason: parse_drift,
exit 6 if earlier pages were gathered) — the same codes the Playwright
engine already gave. (2) The CSV output now prefixes a string cell that
begins with=,+,-,@, a tab or a line break with an apostrophe,
so a spreadsheet reads it as text; JSON is unchanged and the sidecar
records how many cells were escaped ascsv_cells_escaped. (3) A refused
--cdp-endpointconnect now exits 5 with a one-line, credential-free
message instead of a traceback (exit 1).
(4) The canary's production-like job now FAILS with an error naming
FARFETCH_PROXYwhen that secret is absent, instead of skipping green. The
no-proxy job was refused (exit 3) on every one of the last 10 runs, so for a
month the badge was green while no run reached the site. The canary will
stay red until the secret is set.
Fixed
-
One paid captcha solve per page, across every retry and exit rotation.
The Playwright engine called its captcha handler once per block-retry with
nothing counting purchases, so with a 3-exit proxy pool and
--solve-captcha alwaysone blocked page bought three solves (reproduced
with the solver stubbed). A per-pageSolveBudgetis now checked before
every purchase in all three engines and is not reset by a rotation. -
Output files are written atomically.
write_json,write_csvand the
.meta.jsonsidecar went throughopen(path, "w"), which truncates first:
ajson.dumpfailing part-way turned a 433-byte good file into 12 bytes of
invalid JSON. They now write a temp file beside the target, fsync it and
rename it over the target. A new file gets the same modeopen()would
have given it (0o666 & ~umask); an existing file keeps its own. -
A failed
--cdp-endpointconnect no longer prints the endpoint.
Playwright's connect error repeats the endpoint,user:passincluded, in
its message and call log, and nothing caught it. It is now caught, every
occurrence redacted, a 401 explained as wrong or expired credentials, and a
profile_locked/HTTP 500 answer retried up to three times, 3 s apart. The
pyppeteer connect is bounded at 30 s (it had no timeout). -
pyppeteer keeps the HTTP status of the page it loaded, and Selenium reads
it from the browser (PerformanceNavigationTiming.responseStatus), so the
mirrors classify an error page the way Playwright does. Both now also name
parser drift. -
The suite's skip report printed empty whatever happened.
main()
rebound_skipsand_skipped_engineslocally, shadowing the records the
sections wrote to, so theSKIPPED_ENGINES:line the engine-smoke CI job
reads could never name a skipped engine. A check now asserts every engine
whose driver is absent is listed. -
The credential scan reported clean after reading nothing. Exclusions
were tested against the ABSOLUTE path, so a clone under any directory
calledvenvscanned 0 files and printed "nothing credential-shaped". They
are now tested on the path relative to the repo, a scan of 0 files fails,
and JSON/CSV/HTML/TOML/CFG files and renamed.env.*backups are read too. -
A value still holding a
{…}slot from the documented format (the
Scraping Browser endpoint or proxy shape in.env.example) now reads as
unset instead of being sent as a real credential, and an empty value no
longer logs a "still set to the placeholder" warning. -
The DOM fallback no longer defaults a missing currency to USD. A tile
price whose currency the reader could not attribute was written asUSD;
it is nownull. Currency comes only from structured data, a written ISO
code, or a prefixed or bare symbol on the tile. Every price shape the
fallback recognises today carries one of those, so current output is
unchanged; the default could only have fired on an unrecognised shape. -
.gitignorecovers the capture shapes the engines write themselves
(X.page2,X.page3from--dump-html), a bare.htmlat the repo root,
andlive/,captures/,dumps/,scratch/. -
The README exit-code table and the
stop_reason_fordocstring said parser
drift exits 4; it exits 5 (6 with earlier pages gathered). -
Comments, docs and the v0.4.3 notes no longer point at private notes or
bare section numbers that no reader of this repository can open; a suite
check keeps them out. -
Scraper API:
waitForis now sent as a JSON object. Measured
2026-09-23 againstscraper.2captcha.com/tasks/sync: the JSON-encoded
string this client sent (the form older docs described) is refused with
HTTP 422 "params.waitFor must be an object" -- and the task is still
billed ($0.0005) -- so every run with--wait-textor its sibling wait flags
failed with exit 5. The object form answers HTTP 200. -
Scraper API: the target page's status is read from
http_code. The
response'sstatusfield is the API's own verdict string ("success"),
not the target site's HTTP code, so a target 403/503 was never seen by
this client.http_code(an int) is read now, withstatuskept as a
fallback only when it is an int. -
Eight occurrences of a banned product name shipped in the three
engines, including in the--cdp-endpointhelp text a user reads — it
offered the endpoint "or any … browser that exposes a CDP URL", with the
banned word in the gap — and inselenium_scraper.py's module docstring. The naming rule is that the
product is the 2Captcha Scraping Browser API; everything else is "a
remote browser". This repo was the only one of the family's seventeen with
the phrase in shipped code. -
The check that exists to prevent exactly that had three holes, and the
third is why the first two survived:- it banned the two compound forms of the name but not the bare two-word
phrase — the gap the eight occurrences went through; - matching was case-sensitive, patched by listing one capitalised variant
by hand, which covers exactly the casings someone thought of; smoke_test.pywas excluded from the scan wholesale, so the file
most likely to pick up a stray phrase by copy-paste was the one file
nobody scanned. It is now scanned like any other, which works because
the phrases are assembled from pieces rather than written out.
The scan is also anchored to this file's directory rather than to the
working directory, and asserts a floor on how many files it saw: it used
glob("*.py")relative to CWD, so running the suite from anywhere else
scanned nothing and passed. A check that can quietly scan zero files is
not a check.Verified by control: reintroducing the phrase into an engine — in a
capitalisation the old list would have missed — turns the suite red. - it banned the two compound forms of the name but not the bare two-word
Changed
-
README badges use the family's labels:
licence(was "License: MIT",
rendered "license"),Python,enginesand "runs without an account" in
lower case, matching the sibling repos. Order and targets are unchanged;
the access badge stays "runs without an account" because this README
measures a plain local Chromium on a residential IP returning all 96
products with no key, no proxy and no account. -
SECURITY.mdsaid this project has no releases or version tags; it has
both. "Supported versions" now names the latest release andmain.
CI
- The two Claude workflows are guarded on their token. Neither tested
whetherCLAUDE_CODE_OAUTH_TOKENis set, so a copy of this repo without
the secret fails the job on the action's own environment validation — a
permanently red check on every PR, and a check that is always red teaches
everyone to ignore checks.secretsis not available in a job-levelif,
so presence is tested through the jobenvand read in each step'sif,
which is the shape the rest of this family uses.