Repository navigation
v0.4.0
Behaviour changes in this batch.
--store-id/--zipnow choose the store a run is priced at, instead
of only annotating rows. They look the store up in Lidl's store API
before the browser starts, so they need network access to lidl.com and
live.api.schwarz; a store that does not exist exits 2, an unreachable
store API exits 5. Rows record the store actually used (US01449, its
5-digit zip), which can differ from a--zipthat has no store.--zipno longer adds?zip=to the search URL.- New output column
unit_price_per, right afterunit_price.- A search Lidl answers with its no-match page exits 4 (empty) with
stop_reason: no_match. It used to exit 0 with the unrelated
products that page shows, or exit 3 when the page came as a 404.--max-scrollsdefaults tomax(20, --max-results / 4 + 10).--sort newestis new.- Product-page rows use the listing's sku (
lidl-11675058, not JSON-LD's
lidl-11675058001) and thewww.lidl.comURL.
Fixed
--sort price_asc/price_descsent values the site does not know;price_ascgot a page with no products at all. They now sendpriceandprice-desc, the values the site's own Sort By control uses.- A product page's
unit_sizewas every description bullet run together ("pasteurizedhomogenized…gallon"). It now comes from the page's price block, or from a description bullet that reads as a size. - A product page lost its old price, discount and Lidl Plus price: its JSON-LD carries only the public price. They now come from the buybox, which renders the same price block as a listing tile.
--categoryalways prefixed/c/, so aisle listings (/h/…/h…), where Lidl actually lists products, could only be reached through--url. A path starting withh/now goes under/h/.- The Playwright engine warned "No products recognised on the first render" on successful aisle runs, whose grid fills in after the first render. All three engines now warn once, at the end of a run that found nothing.
- pyppeteer on Apple Silicon died with "Browser closed unexpectedly": pyppeteer 2.0 downloads an x86_64 Chromium. It now uses an installed Google Chrome there when
PYPPETEER_EXECUTABLE_PATHis not set.
Added
lidl_stores.py: store lookup by number or zip, and the four cookies (st,wh,zn,ar) the site's own store picker sets, applied before the first navigation in all three engines.unit_price_per: the unitunit_priceis quoted in. Stores choose it: the same gallon reads 0.03 perfl.oz.with no store and 1.06 perqt.at US01449.- Fixtures from real captures:
tests/fixtures/lidl_product_real.html(a product page) andtests/fixtures/lidl_no_match_real.html(the no-match page with its fallback grid).
Verified live, 2026-10-18
--query "whole milk" --store-id 1449in all three engines: the gallon at $4.25 (vs $3.48 with no store), rows markedUS01449/07086.--zip 28202picked US01497 in Charlotte, with its own prices.--sort price_ascandnewest,--category h/cheese-dairy-eggs/h10095761 --max-results 200(complete, 200 rows, no--max-scrollsneeded), a product page with a Lidl Plus price, the no-match page, and US01575's 404 search, which now exits 4.diff_runs.pyon real runs: no changes between Selenium and pyppeteer's 60-row runs, none between JSON and CSV of the same search; the three Maola milks it flagged between a morning run and a later one (38.0 → 2.99) were the deal-badge price bug fixed in 0.3.0.