Repository navigation
v1.3.0
Superseded by v2.0.0: this release removes output columns and should have been a major version.
Exit codes. A page whose listing grid rendered but parsed to zero
rows is now a parser failure: exit 5 when no row was recovered, exit 6
(partial,parser_failed_pagesin the sidecar) when other pages had
rows. It used to be reported as an empty search, exit 4. A run with no
rows where one page was served empty and another failed is now exit 5,
not 4, and the Scraper API path now answers 4 for a served empty page
and 3 for a Cloudflare challenge (both were 5).Rejected flag values (exit 2).
--retries,--delayand
--retry-delaybelow 0, and--pages,--concurrencyand
--proxy-block-retriesbelow 1, are argparse errors in all three
engines (--retries -1used to run no navigation at all and report exit
5;--retries 0still means one attempt).--proxy/--proxy-file
together with--cdp-endpoint(from flags or.env) is refused instead
of the proxy being silently ignored.--captcha-apiis removed: nothing
ever read it.CSV cells and file modes. In the CSV only, a text cell starting with
=,+,-,@, a tab, CR or LF gets a leading apostrophe so a
spreadsheet does not run it as a formula; numbers and the JSON are
unchanged, and the sidecar counts the escaped cells in
csv_cells_escaped. Output files keep an existing file's mode; a new one
gets what the umask allows, as before.
Output change.
rating,review_countandin_stockare gone from
every JSON row and from the CSV header. A consumer that selects them by
name will now fail on a missing key; one that reads by position will see
every later column move left by up to three. They were shop columns
inherited with the family's row: nothing in this repo ever assigned them
(no write to any of the three inproduct_parser.py), and they were null
on 21 of 21 rows of the real 2026-09-23 capture.brand,
original_priceanddiscount_pctstay: the embedded-JSON path still
fills them when a page serves that JSON, even though the Angular pages
served today leave them empty.
Fixed
- Output files (
.json,.csv,.meta.json) are written to a temporary
file in the same directory and moved into place only when complete, so a
failed or interrupted write leaves the previous good file intact instead
of truncated. - One page buys at most one paid captcha solve, however many attempts,
proxy rotations or challenge markers it goes through. The allowance is
checked before each purchase in all three engines; a missing key or an
unsolvable Managed Challenge costs nothing and does not use it up. currencyis null when nothing states one (it defaulted toEURon the
embedded-JSON and JSON-LD paths, which today's pages do not use).- The credential scan now also reads
.json,.csv,.htmland.cfg
files, recognises a virtualenv by itspyvenv.cfgunder any name,
judges thesample_outputexemption by file name rather than by the
whole path, and refuses to report a tree clean when it read no file. - README: the Scraping Browser credential lifetime is no longer stated as
"about a day"; an HTTP 401 on connect is described as credentials no
longer accepted. The Docker image is documented as needing
--cdp-endpointor a display, and the Dockerfile no longer claims a CI
step that did not exist (the offline suite now checks its COPY list). - Comments, docs and tests no longer cite private maintainer notes; each
rule is stated in place. The offline suite fails if such a citation
returns.
Changed
- The canary no longer skips green: without a usable
ZIMMO_PROXYsecret
(missing or empty) it fails with an error naming it, because zimmo.be
refuses GitHub's runners and a run that never reached the site tested
nothing. Any nonzero exit (block, zero rows, parser failure, partial)
is red. - The canary is split into a
gatejob and the live job. With no
ZIMMO_PROXYsecret the live job is SKIPPED with a notice, instead of
running, being refused by Cloudflare and exiting 0. Exit 3 with a proxy
is now a red run, as it should be. GitHub still colours the workflow
badge green when its only live job was skipped; the README says so.
Not changed
- Challenge markers (
turnstile,cf-turnstile-response) that a Scraping
Browser session may inject: changing them needs real served and refused
captures over--cdp-endpoint, which this change did not take. - The family flags
--fingerprint,--fp-*,--localeand--mode, and
whether to keepfingerprint_client.py: an owner decision. - The three engines still carry their own page loop. Moving it into a
shared module is a refactor that needs a live run of all three. - Playwright stays pinned to 1.44.0 alongside the Docker base image.
Added
product.schema.json, a JSON Schema (draft 2020-12) for one row,
generated bypython3 output_writer.pyfrom theProductdataclass.
smoke_test.pyfails if it drifts from the dataclass or if
sample_output.{json,csv}stop matching it.x-schema-versionis 2.- canary assertions on the data itself: unique non-empty
skus, prices in
a plausible range, nooriginal_priceat or below itsprice, every
URL on zimmo.be.