Repository navigation
Releases
v2.0.0
Major version for a schema break. 2.0.0 is the same code as 1.3.0,
re-released under a major version. 1.3.0 removed therating,
review_countandin_stockoutput columns (and the unused
--captcha-apiflag), which breaks the row schema that 1.0.0 declared a
public interface; such a change belongs in a major version. Anyone
pinned to 1.x should stay on 1.2.1 or adapt to the new row; see 1.3.0
below for the full list of changes.
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.
v1.2.1
Fixed
--cdp-endpointreconnected for every page, and the Scraping Browser
refused the reconnects. The API allows one live connection per
profile; a connect made a moment after the previous page let go was
answered with HTTP 500 on the websocket upgrade. Measured on a 3-page
run of v1.2.0: Playwright opened five connections and retried twice;
pyppeteer opened four and spent a 60 s connect timeout. Both engines
now hold one connection for the run and open each page in a fresh tab;
a failed attempt drops the connection so its retry starts clean. The
same runs after the fix: one connection, no errors, 39 s and 31 s.
The log's last line reports how many connections a run opened.- With
--cdp-endpoint, the Playwright engine fetches pages 2+ in the
main thread instead of a one-worker pool: a Playwright sync object
belongs to the thread that created it, and--concurrencyabove 1 is
refused over CDP anyway. Pagination, exhaustion and failure bookkeeping
are the same code as the pool's.
Not changed
- The Selenium engine: it cannot authenticate to a Scraping Browser
endpoint at all (README, Engines), so it never met this.
v1.2.0
Behaviour changes for an existing user:
- A blocked or failed page now makes the run
partial, exit 6 (it was
complete, exit 0, with that page's listings silently missing). A
blocked page 1 now ends the run with exit 3 instead of moving on.- An HTTP error or 404 on every page is exit 5, "never obtained" (it was
exit 4, "zero listings").- A listing that ends before
--pagesiscomplete, exit 0 (it was
partial, exit 6).diff_runs.pyrefuses two runs of different searches, and reports a
listing missing from a window-limited run asleft_selection, which
--fail-on-changeignores, instead ofremoved.- Running the offline suite no longer prints the keys in your
.env.
Fixed
From an external audit of v1.1.1 (2026-10-07), each reproduced before it
was fixed, plus three found while verifying it.
check_no_credentials.pyprinted the keys in the user's.env. It
walked the whole directory, the git-ignored.envincluded, and printed
every match verbatim — so every localpython3 smoke_test.pyreported
the user's real configuration as a "committed credential" and wrote it
to the terminal. Inside a git work tree it now scans what git could
commit (a force-added.envis still caught), and a finding is reported
asfile:lineand the kind of match, never the text. Not in the audit;
found by running the suite with a real.envin place.- A blocked page counted as a completed one (audit P1), in all three
engines: a Cloudflare 403 on page 2 behind a good page 1 finished
complete, exit 0. Worse than the audit stated: a blocked page 1
followed by a good page 2 did the same. Every engine now reads the
HTTP status (Playwright and pyppeteer from the navigation response,
Selenium from Navigation Timing) and takes its verdict from one shared
output_writer.classify_page(). - An HTTP 500 read as an empty catalogue (audit P2): exit 4. 429 and
5xx are now retried within--retries, then count as failed; 404 is
not retried. Pages whose status rules out a grid skip the 45 s
readiness wait. diff_runs.pycompared different searches (audit P2): two
completeruns for Gent and Antwerpen diffed as market movement. The
sidecar now recordsselection; sidecars from before 1.2.0 have none
and are warned about, not refused.- A listing that moved past
--pagesread as removed from the site
(audit P2). Nowleft_selectionunless the newer run read the listing
to its end (listing_exhausted). - An exhausted listing finished
partial, exit 6 — sodiff_runs.py
refused every such run. Not in the audit. Exhausted pages are now
exhausted_pages, and the run iscomplete. - The pyppeteer engine could hang forever over
--cdp-endpoint. A
Scraping Browser profile still busy from the previous page answers the
websocket upgrade with HTTP 500; pyppeteer loses that in a background
task andconnect()never returns (measured live: page 1 done, page 2
still connecting after ten minutes). Every CDP call is now bounded at
60 s and a timeout is retried like any other fetch error — the same
live run then finished all three pages. Not in the audit. - The Playwright engine's docstring still described the inline JSON array
zimmo.be dropped in September.
Measured live on 2026-10-07 through a residential exit, and written into
classify_page(): a served page is 200, Cloudflare's challenge 403, an
unserved route 404 ("Pagina niet gevonden"), and ?page=999 is 200
carrying page 1 again.
Not changed
- One shared page loop instead of three engine copies, separate
namespaces for the family's same-named modules, detail-page enrichment,
coordinates, agency, URL batches, checkpoint/resume — product and
architecture decisions, not defects; raised for discussion. - An empty search: zimmo.be answered every empty search tried with 404,
so a "confirmed empty" page could not be told apart from a wrong URL.
Both now end with exit 5 rather than claiming the catalogue was empty.
v1.1.1
Behaviour change for an existing user: with the pyppeteer engine, an
authenticated--proxynow works on current Chrome; before this release it
stopped with exit 5 before the first request.
Fixed
Found by a family-wide probe over a fresh clone of every repo in the
organisation on 2026-09-29.
- The pyppeteer engine could not authenticate a proxy on current Chrome.
page.authenticate()usesNetwork.setRequestInterception, which current
Chrome no longer has ("wasn't found", exit 5 before the first request —
measured 2026-09-29 in rosreestr-scraper). Proxy 407s are now answered
through the CDP Fetch domain;tests/test_family_sync.pypins that the
old call stays gone. .gitignorelet a renamed.envthrough (.env.bak,.env.local),
and any run directory other thanlive_results/, and paged dumps
(X.page3). Now ignored by shape, with a test per shape.
v1.1.0
Output changes for existing users. Listings whose price reads
"Prijs op aanvraag" / "Prix sur demande" are now ROWS, withprice
andcurrencyboth null — before, they were silently dropped. And
bedrooms,epc_labelandproperty_type, which were null on every
row of every run since zimmo.be's Angular redesign, are now filled.
No flag and no column changed.
Correction to 1.0.0's "no account needed" promise. It is still
true that no 2Captcha key is required. It is not true that nothing is:
measured 2026-09-23, zimmo.be serves listings to a residential exit
with a headful browser, and refuses headless Chromium (even from a
Belgian home address) and any datacentre address. The README now says
so, with the measurements. The 2Captcha Scraping Browser API also
works (Belgian exit, 3 of 3 pages).
The "daily canary" 1.0.0 cited never ran. It was gated on a
TWOCAPTCHA_KEYsecret that was never set, so every run took the
skip branch and the badge read green without touching the site.
Fixed
- Parser, on the markup the site serves today (NL and FR, sale and
rent; checked field by field against the tiles' own labels on 105
tiles over 7 live pages, 0 mismatches):- each listing is scoped by its own
<zimmo-listing>element instead
of by walking up until a price appears, which is what dropped
price-on-request listings; bedrooms, living area and the energy grade are read from the
tile's feature ICONS, which are the same in both languages — EPC
(Flanders, Wallonia) and Brussels' EPB alike;epc_x.svg(no grade)
stays null rather than becoming a letter;- areas are read the Belgian way: "2.578 vierkante meter" is 2,578 m²,
not 2.578; surface_m2is the LIVING area only — a shop's commercial surface
or a plot area is no longer written into it;property_typeandlisting_typecome from the URL segment
(/te-koop/huis/…,/a-louer/…), so a new-build project whose
title carries no sale word is no longerlisting_type: null.
- each listing is scoped by its own
- Selenium never started on a machine whose Chromium was not the newest
Chrome.webdriver-managerdownloaded the latest chromedriver for
Google Chrome (154) against an installed Chromium 152, and every
session died with "session not created" — reported as exit 5. Replaced
by Selenium Manager, built intoselenium>=4.6, which matches the
installed browser; thewebdriver-managerdependency is gone. - The Scraper API path failed on every call, and was billed for it.
The live API now requireswaitForas an object and answered the
JSON-encoded string this client sent with HTTP 422 "params.waitFor must
be an object" ($0.0005 each). It also reports the target's status in
http_code, whilestatusis its own "success" — which the client
compared with 400 and would have raisedTypeErroron. Both fixed;
measured after the fix: 21 rows, exit 0. - Exit 5 for a run that never obtained a page. Zero rows with every
attempted page failed (a dead proxy, a load timeout) reported exit 4,
"the catalogue is empty". It is now 5, "the content was never
obtained", as across the family since 2026-09-21. - The banned-wording check read only
.pyfiles, so the README
tagline and the package description both used a phrase it bans. It
now scans the published text files too (README, pyproject, workflows,
.env.example, Dockerfile, CONTRIBUTING, SECURITY).
Changed
canary.ymlruns headful under xvfb, takes its proxy from a
ZIMMO_PROXYsecret when one is set, and asserts column shares
(living area, bedrooms, EPC, property type), not only a row count.
Dispatched once on this branch with no secret: GitHub's runner was
refused (exit 3) and the job ended in its::notice::, as designed —
so until aZIMMO_PROXYsecret exists, green means "refused as
documented", not "tested".- The README's "What you need" section replaces the old "Honesty"
section, which contradicted itself on the Scraper API and still
described an embedded-JSON path the site removed on 2026-09-15. - The Scraping Browser example keeps its endpoint in
.env; it used to
put a password on the command line.
v1.0.0
No change to what the scraper does. This release is a commitment about
what will NOT change: from here on the CLI flags and the output schema
are a public interface, and anything that breaks them is a 2.0.0, not
a patch. 0.4.0 earned that -- it was the release where a series of
real runs against the live site replaced guesses with confirmed
behaviour, and nothing has had to move since.
What is now covered by that promise:
- The CLI flags of all three engines. Including the 0.4.0 fix that
made--no-proxy-rotatea real, working opt-out. Renaming or
removing a flag now requires a major bump. - The output schema. The
Productdataclass field order, which is
also the JSON key order and the CSV header, plus the.meta.json
run-metadata keys. CI already assertssample_output.{json,csv}
match the dataclass exactly, so drift fails the build rather than
reaching a consumer. - The "no account needed" promise. The scraper keeps running with
no proxy and no captcha key; those stay opt-in.
What is explicitly NOT covered, because it is not ours to promise:
zimmo.be's own markup. The parsing paths behind these flags will keep
moving as the site does -- that is the whole point of the daily canary
-- and such a change is a patch, not a break, as long as the flags and
the columns above stay put.
Added
release.yml: pushing av*tag cuts a GitHub Release with notes
taken from this file's matching section, and refuses the tag unless
the tag,pyproject.tomland this CHANGELOG agree on the version.
A release tagged v1.0.0 against a pyproject still saying 0.4.0 is
the kind of mismatch nobody notices until a bug is filed against a
version that never existed. It runs on the workflow's own
GITHUB_TOKEN, so publishing needs no personal token anywhere.- The canary now also runs when
canary.ymlitself is edited. It is
the one workflow that can sit broken for a full day unnoticed --
a typo in it would otherwise surface at 06:17 UTC the next day, to
whoever happened to read the log.
Fixed
- The offline CI job could never have been green. It installed
requirements.txtalone and then ran--helpfor all three engine
scrapers, each of which imports its driver at module level, so every
one died withModuleNotFoundError. The module-level import is
deliberate --engine-smokeasserts it byastwalk precisely so a
realImportErrorcannot decay into a silent skip -- and the three
engine requirement files are mutually unsatisfiable in one
environment, so the engine CLIs simply do not belong in that job.
Their--helpis covered per engine inengine-smoke's own venv. playwright install --with-depsfailed onubuntu-latest. The
pinnedplaywright==1.44.0predates Ubuntu 24.04 and cannot resolve
its system packages; support for it landed in playwright 1.45. The
Playwright jobs now pinubuntu-22.04, matching the Dockerfile's
ownv1.44.0-jammybase image, so the two pins stay in sync.- A red engine hid the others.
fail-fast: falseon the engine
matrix -- selenium was once cancelled mid-flight by playwright's
failure, so its real status was never reported at all.
v0.4.0
The 0.3.0 audit (below) was static/external and found real bugs; this
release is what a series of ACTUAL runs against the live site, the
same week, found on top of it -- six further confirmed defects, none
of them visible from code review or the offline test suite alone.
Every item was independently reproduced against zimmo.be before being
fixed, and each has its own regression test in smoke_test.py.
Fixed
- Pagination silently did nothing.
page_url()built?p=N,
confirmed live in an earlier, unrelated MCP-tooling session against
the site at an earlier point in time. A live run against the CURRENT
site found?p=Nis ignored outright -- page 2 returned page 1's
own listings verbatim, which this project's own data-based
termination correctly (but wrongly, given the stale parameter) read
as "the listing is exhausted" after just one page, on every
multi-page run. The real parameter, found by inspecting the site's
own pagination link directly, ispage(?page=2). Every multi-page
run before this fix silently returned only page 1's own listings,
repeated, regardless of--pages. - The CSS fallback returned 0 products on the live site. zimmo.be
has moved to an Angular-rendered listing grid since the properties-
JSON path was confirmed (2026-08-22) -- that path and a real-estate
JSON-LD path are both now absent entirely (a live capture's only
JSON-LD block is aBreadcrumbList, navigation only). The CSS
fallback is therefore the path actually in use today, and it had its
own bug: a widening search correctly found the tile's price-
containing ancestor (the price lives in a sibling<div class="price">,
not inside the<a>around the title), but that widened scope was
discarded and silently recomputed narrower in a second pass, missing
the price on every real listing. - Prices came back as billions. The price parser (already
rewritten once for the 0.3.0 audit's own thousands-separator bug)
allowed a bare SPACE as an additional grouping character inside the
price digits. Real tile text is flattened to one string with single
spaces between every element (get_text(" ", strip=True)), so a
real price such as "€ 385.000" followed anywhere later in the same
text by an unrelated number -- a bedroom count, a surface area --
was greedily swallowed as a continuation of the price's own
thousands grouping: "€ 385.000 2 slaapkamers 120 m²" parsed as
3,850,002 instead of 385,000, live, on a real page. A bare space is
no longer treated as a grouping character;.(the site's own
confirmed separator) still is. --solve-captcha=when-blocked(the default) skipped solving on a
genuinely blocked page.SELECTORS["item_link"]was a loose
pre-confirmation guess (a[href*="/"]) matching any relative link at
all -- including a blocked/shell page's own 91 navigation, cookie-
consent, language-switcher and footer-legal links, none of them a
real listing.when-blocked's own "does this page already have
real content" check counted those 91 links as "already rendered" and
skipped solving on a page that was still genuinely gated. Replaced
with.zimmo-code, a marker confirmed present only on a real listing
tile, never on nav/cookie/footer chrome -- this selector feeds both
this check and the pre-existing render-detection wait, across all
three engines.- An EPC label followed by a word failed to parse at all.
"EPC label C","EPC label: A+"and similar natural-language
phrasing did not match the EPC regex, which required ONLY non-letter
characters between "EPC" and the grade letter -- leaking the raw EPC
text into the CSS fallback's own title field instead of being
recognised and stripped. Widened to allow up to 20 characters
(non-greedy) before the grade letter; the grade letter itself is
matched case-SENSITIVE (uppercase only) specifically to avoid a
case-insensitive match snagging a random lowercase a/b/c/d/e/f/g out
of an ordinary nearby English word -- confirmed as a real risk when
an earlier, all-case-insensitive version of this same fix matched
"a" out of "available" in unrelated text near the word "EPC". scraper_api_client.py's wait condition could never succeed.
DEFAULT_WAIT_FOR_TEXTwas"properties: [", confirmed live
2026-08-22 but removed from the site entirely by the same Angular
rewrite noted above -- every call using the default timed out
unconditionally, regardless of whether Cloudflare would have let the
request through. Changed to"€", confirmed live to appear as
genuine rendered price text on every real listing tile.
Repo-readiness fixes (found during final pre-push review, not live testing)
canary.ymlrequired every page to complete andstatus == "complete"on a single attempt -- given the run-to-run
inconsistency documented above (found the SAME day this canary was
written), this made the canary likely to fail on the site's own
normal instability rather than a real scraper regression, exactly
the "always red, so everyone ignores it" failure mode this repo's
own CI philosophy warns against. Now retries the whole run up to 3
times and acceptspartial(not justcomplete) as long as a
reasonable number of priced listings came through..gitignoredid not cover ad-hoc, one-off diagnostic scripts
written during a live-testing session -- confirmed as a real gap:
none ofreliability_test.sh,check_quality.py,check_context.py
oranalyze_reliability.pywere excluded automatically, and all had
to be removed by hand before this repo's own first commit. Added a
scratch_*naming convention (and the specific names above) so a
future one-off script is excluded automatically.- The default branch was
master(this environment'sgit init
default); renamed tomainto match the push instructions actually
given alongside this repo.
Also documented (not code changes, but confirmed live findings)
- Whether a plain Scraper API call, a
--cdp-url-routed call, or the
Playwright engine's ownCaptcha.setAutoSolvegets through zimmo.be's
Managed Challenge is inconsistent run to run -- the identical
configuration succeeded and failed on different attempts across
every one of these three paths during live testing. See
scraper_api_client.py's own module docstring and
playwright_scraper.py's reliability-testing notes for the full,
dated history; budget for retries in production regardless of which
path is used. - The 2Captcha proxy field on
scraper_api_client.py's--proxyflag
was added this release (previously unsupported) and independently
confirmed live via the proxy provider's own usage dashboard, not
just this project's own output.