Skip to content

v1.3.0

Choose a tag to compare

@jehrr jehrr released this 15 Oct 23:03
37c4988

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_pages in 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, --delay and
--retry-delay below 0, and --pages, --concurrency and
--proxy-block-retries below 1, are argparse errors in all three
engines (--retries -1 used to run no navigation at all and report exit
5; --retries 0 still means one attempt). --proxy/--proxy-file
together with --cdp-endpoint (from flags or .env) is refused instead
of the proxy being silently ignored. --captcha-api is 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_count and in_stock are 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 in product_parser.py), and they were null
on 21 of 21 rows of the real 2026-09-23 capture. brand,
original_price and discount_pct stay: 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.
  • currency is null when nothing states one (it defaulted to EUR on the
    embedded-JSON and JSON-LD paths, which today's pages do not use).
  • The credential scan now also reads .json, .csv, .html and .cfg
    files, recognises a virtualenv by its pyvenv.cfg under any name,
    judges the sample_output exemption 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-endpoint or 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_PROXY secret
    (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 gate job and the live job. With no
    ZIMMO_PROXY secret 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-*, --locale and --mode, and
    whether to keep fingerprint_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 by python3 output_writer.py from the Product dataclass.
    smoke_test.py fails if it drifts from the dataclass or if
    sample_output.{json,csv} stop matching it. x-schema-version is 2.
  • canary assertions on the data itself: unique non-empty skus, prices in
    a plausible range, no original_price at or below its price, every
    URL on zimmo.be.