Lidl Scraper — US Grocery Prices and Unit Prices in Python

Lidl scraper — an open-source (MIT) Python tool that reads lidl.com (Lidl US) search and category pages and writes grocery products with prices, unit prices and sizes to JSON or CSV. The default is a local headless Chromium with no proxy, key or account; live engine runs passed on 2026-10-18, and prices depend on the store you pick (confirmed the same day). Use it to track grocery prices by store, or to compare two runs with the bundled diff tool.
lidl.com (Lidl US) grocery product scraper: a search term or a specials
category in, a flat list of products out. Three engines (Playwright
primary, Selenium and Puppeteer/pyppeteer for parity), JSON or CSV output,
an open, documented Product schema. Part of the
2scraper family — same output contract,
exit codes, and family modules as stockx-scraper / skyscanner-scraper.
Example output
Both records of sample_output.json, trimmed from the
live Playwright run of 2026-09-20 — every column, in the output’s order:
[
{
"sku": "lidl-11675058",
"source": "lidl.com",
"category": "Food",
"title": "whole milk",
"brand": null,
"price": 3.3,
"currency": "USD",
"price_source": "dom",
"product_url": "https://www.lidl.com/p/whole-milk/p11675058",
"image_url": null,
"scraped_at": "2026-09-20T13:13:11Z",
"unit_price": 0.03,
"unit_price_per": "fl.oz.",
"unit_size": "128 fl.oz.",
"original_price": null,
"discount_pct": null,
"is_weekly_deal": null,
"lidl_plus_price": null,
"deal_valid_from": null,
"deal_valid_until": null,
"store_id": null,
"zip_code": null
},
{
"sku": "lidl-11242918",
"source": "lidl.com",
"category": "Food",
"title": "Lactaid® whole milk",
"brand": "LACTAID®",
"price": 6.38,
"currency": "USD",
"price_source": "dom",
"product_url": "https://www.lidl.com/p/lactaid-whole-milk/p11242918",
"image_url": null,
"scraped_at": "2026-09-20T13:13:11Z",
"unit_price": 0.07,
"unit_price_per": "fl.oz.",
"unit_size": "96 fl.oz.",
"original_price": null,
"discount_pct": null,
"is_weekly_deal": null,
"lidl_plus_price": null,
"deal_valid_from": null,
"deal_valid_until": null,
"store_id": null,
"zip_code": null
}
]
Full sample: sample_output.json · 2 rows, collected
2026-09-20 (a --query search, no store picked).
unit_price is per unit_price_per (here per fluid ounce); with a store
picked, the price, the unit and store_id/zip_code change — see
Coverage and limitations.
Requirements and access
|
|
| Runtime |
Python 3.9 or newer (the offline suite runs on 3.9 and 3.12 in CI); Playwright with its Chromium (primary); Selenium (needs a matching chromedriver) or pyppeteer as alternatives, one per virtualenv |
| Coverage |
lidl.com (Lidl US, prices in USD): searches, aisle and weekly-deals listings, product pages. Prices are per store: --store-id or --zip picks one; without it the site’s default prices are returned. See Coverage and limitations |
| Required for the documented scenario |
Nothing. No key, no proxy, no account, no .env |
| Optional: a proxy |
For volume or a specific exit country (LIDL_PROXY). A US residential proxy gave the same result as no proxy on 2026-11-05 |
| Optional: 2Captcha Scraping Browser API |
No local browser (LIDL_CDP_ENDPOINT, Playwright and pyppeteer); ran live on 2026-10-18. A profile serves one session at a time |
| Optional: fingerprint |
--fingerprint applies only the user agent of a 2Captcha Fingerprint API profile |
| Captcha solving |
Not needed: no bot challenge was met in any measured run, and the local engines never buy a solve |
| Measured |
2026-11-18 at commit c67ce71, Hetzner datacentre address, no proxy, key or account; first on 2026-11-05 at 4dbec6d from a datacentre server, a GitHub runner and a US residential proxy. See Verification |
Quick start
python3 -m venv .venv && . .venv/bin/activate
pip install -r requirements-playwright.txt
playwright install chromium
python3 playwright_scraper.py --query "whole milk" --max-results 20
No key, no proxy, no account, no .env. Add --store-id US01449 or
--zip 07086 to price the run at one store.
It writes two files to the current directory (--out names the output,
--format csv writes CSV instead of JSON):
lidl_results.json — one row per product;
lidl_results.json.meta.json — status, stop_reason, scroll rounds,
failed pages and the share of rows with a confirmed price.
If the run does not end with exit 0:
- exit 3, blocked — no lidl.com block page has been seen yet, so save
the page with
--dump-html and see Known limitations.
- exit 4, zero products — the page says nothing about products existing.
Some stores answer every search with “no match”; one scheduled run got
lidl.com’s home page instead. Re-run with
--dump-html before reading it
as a real zero.
- exit 5 or 6, not obtained or partial — 5: the page never loaded, the
store API was unreachable, or the page counted products the parser did not
recognise; 6: rows were collected and then the grid came up short. See
Output contract.
Setup, .env and exit codes for the whole family:
How to run the 2scraper scrapers.
Coverage and limitations
The short version: searches, aisle and weekly-deals listings and product
pages on lidl.com (Lidl US); one scroll-based grid per run, capped with
--max-results; prices per store; no deal dates.
Known limitations
- No site-specific block-page marker exists.
lidl_parser. BOT_CHALLENGE_MARKERS is deliberately empty — detection still runs via
captcha_solver.GENERIC_BOT_CHALLENGE_MARKERS (Cloudflare/reCAPTCHA/
another captcha vendor’s widget/PerimeterX/DataDome wording), but nothing specific to how
lidl.com’s own block page (if one exists) reads has been captured yet.
If you hit one, TESTING.md explains how to add it.
- This repo does not implement captcha token injection on a locally
launched browser, so the local engines never BUY a solve: a challenge
is detected and reported (the run ends blocked, exit 3), and no 2Captcha
task is created, because a token nothing puts into the page cannot clear
it. Over
--cdp-endpoint (the Scraping Browser API) the remote browser’s
own Captcha.setAutoSolve solves inside its own infrastructure, which is
unaffected. If injection is added later, each page still gets at most one
paid solve (captcha_solver.SOLVES_PER_PAGE), shared by every scroll
round.
- Some stores answer every search with “no match”. On 2026-10-18,
US01575 (New York 10001) made a search for whole milk return a 404 with
Lidl’s no-match page. Such a run ends empty (exit 4), not blocked. The
same page, without a store, can also show a handful of unrelated
products under its no-match message; those are never returned as
results.
unit_price is quoted per the store’s unit. unit_price_per names
it: the same gallon is 0.03 per fl.oz. with no store and 1.06 per
qt. at US01449, so compare unit prices only where the units match.
- Deal dates are not filled. Images,
original_price, discount_pct
and is_weekly_deal come from confirmed tile markup, but no tile states
a deal’s validity dates, so deal_valid_from/deal_valid_until stay
null on listings. Deals pages print date ranges, but mostly in teasers
for other pages, and a tile on the week-42 page can carry an “In stores
starting 10/28” badge, so a page’s week is not its tiles’ validity. price is what a shopper without the Lidl Plus app
pays; a member price goes to lidl_plus_price, and on those tiles
unit_price is null because Lidl prints only the member per-unit price.
Examples
Commands for a store, a sort order, an aisle, a deals page and a product page
are under Usage.
Verification
| Date, commit |
Check |
Conditions |
Result |
2026-11-18, c67ce71 |
Quick start install |
a fresh virtualenv, Python 3.13, requirements-playwright.txt (Playwright 1.65.2) |
installs; every flag in the Quick start and Usage commands is in --help |
2026-11-18, c67ce71 |
Quick start, as written above |
headless Playwright, no proxy, no key, no account, no .env, one Hetzner datacentre address |
20 rows, 20 unique sku, status: complete (stop_reason: max_results), 3 scroll rounds, exit 0; price (USD) and unit_price on 20 of 20; no bot challenge; the same 22 columns in the same order as sample_output.json |
2026-11-18, c67ce71 |
The same with --store-id US01449 |
the same |
20 rows priced at US01449 (Weehawken 07086), complete, exit 0; 5 of the same 20 sku priced differently from the run without a store (e.g. $3.61 → $4.40), and unit_price_per in qt. instead of fl.oz. |
2026-11-18, c67ce71 |
Offline suite |
python3 smoke_test.py, core requirements only |
passed |
2026-11-05, 4dbec6d |
Access without a key or proxy |
a datacentre server, a GitHub runner, a US residential proxy |
complete, exit 0 on all three (see Local-first) |
| 2026-10-18 |
All three engines and every feature |
store selection, sorting, aisle listings, product pages, the Scraping Browser path |
passed (see Read this before trusting a run) |
| 2026-10-19 to 2026-11-16 |
Canary, weekly |
canary-local: a GitHub runner, no proxy, no key. canary-cdp: the Scraping Browser API |
canary-local green on every run except 2026-11-02 (it got lidl.com’s home page, exit 4), the last on 2026-11-16 at c67ce71. canary-cdp red since 2026-10-26: the Scraping Browser API refuses the login stored in the LIDL_CDP_ENDPOINT secret (deny_no_user) — a credential, not the site |
Read this before trusting a run
Updated 2026-09-20 from a real, browser-rendered capture (a real
Chromium browser, not this repo’s own earlier non-browser fetch attempts).
Most of what used to be a guess here is now a confirmed fact:
- The real search URL is
https://www.lidl.com/q/search?q=<query> —
not /search/products/{query}, which this repo guessed before and which
is confirmed WRONG (a real 404, seen side-by-side with the real request
succeeding in the same page load). Category browsing is
/c/{slug}/s{numeric-id}, also confirmed real, not the old
/specials?category=<hex-id> guess.
- The site runs on Nuxt.js, not Next.js as previously guessed — the
old
__NEXT_DATA__ heuristic never matched anything real and is now a
documented dead end, kept only as a harmless no-op.
- The search-results page’s own JSON-LD is
Organization only — no
Product/ItemList data lives there. An individual product-detail page
(/p/{slug}/p{id}) DOES have a real, clean schema.org Product block,
just not the listing page.
- The real primary data source for a listing is a DOM attribute: each
result tile carries
data-gridbox-impression, a URL-encoded JSON blob
with clean id/name/brand/category/price data — confirmed real, and now
lidl_parser.py’s primary extraction path (extract_gridbox_products).
Unit price/size come from the tile’s visible price text alongside it.
- Prices depend on the store, and the store is a cookie (confirmed
2026-10-18). With no store picked, a search returns default prices; the
site’s store picker sets four cookies (
st, wh, zn, ar) and from
then on the same gallon of whole milk reads $4.25 in Weehawken NJ, $5.09
in Philadelphia and $2.57 in Charlotte instead of $3.48. --store-id /
--zip set those cookies in every engine — see lidl_stores.py.
- No bot-challenge of any kind was hit on lidl.com in this capture —
clean end to end, in contrast to skyscanner-scraper’s sibling repo,
which served a real, immediate PerimeterX challenge in the same session.
- Update, 2026-09-20 (later the same day) — the actual engine was run
live for the first time, not just a manual browser capture:
python3 playwright_scraper.py --query "whole milk" --max-results 10 --format json --out /tmp/lidl_test.json against the real, live site —
exit code 0, "status": "complete", 8 real products,
price_confirmed_pct: 1.0. Real rows include {"title": "Lactaid® whole milk", "brand": "LACTAID®", "price": 6.38, "unit_price": 0.07, "unit_size": "96 fl.oz.", "price_source": "dom"} — the math checks out
(6.38 / 96 ≈ 0.07/oz) and the URL used
(https://www.lidl.com/q/search?q=whole+milk) matches the confirmed
real scheme above. This is the first time extract_gridbox_products()
has been exercised by the actual scraper, not a hand-driven browser
session — the single biggest remaining gap this repo had (see
TESTING.md step 2) is now closed.
- Everything the scraper does has run live as of 2026-10-18: store
selection, sorting, aisle listings, product pages, discounted tiles,
images, and the Scraping Browser path (
--cdp-endpoint, Playwright and
pyppeteer). A Scraping Browser profile serves one session at a time and
answers profile_locked for a few seconds after the previous one, which
the engines report as exit 5. Batched virtual-grid pagination and
the real View More Products control are now live-verified.
- The architecture — exit codes, the output contract, dedupe,
credential redaction, CLI validation, all three engines importing
cleanly, and the shared crash-safety wrapper around parsing (a bad
round degrades to “found nothing new,” never a crash that discards
already-collected sibling rounds — same idiom as
skyscanner-scraper’s
flight_parser.safe_parse_search_results) — is
real and tested, as before. smoke_test.py now also includes one
fixture built from the real capture above
(tests/fixtures/lidl_search_real.html), not just synthetic ones — see
smoke_test.py’s own module docstring for which is which.
- Manual captures were followed by full Playwright engine runs, including a
60-item query that crossed the first lazy batch. Selenium and pyppeteer
passed the same live runs on 2026-10-18;
TESTING.md records what is
still unverified.
Local-first
Like the rest of the family, this does not require 2Captcha’s paid
Scraping Browser API to run. The default is an ordinary local headless
Chromium, no proxy, no key, no account. --proxy / --cdp-endpoint /
--fingerprint are opt-in power options for volume, a specific exit
country, or a consistent device identity.
Measured 2026-11-05 at commit 4dbec6d, Playwright engine, no proxy, no
key, no account, --query "whole milk" (or "milk"), first result batches:
| Where the run came from |
Exit |
Result |
| A datacentre server (Hetzner, Helsinki) |
0 |
complete, 20 products in 3 rounds, all prices confirmed |
A GitHub-hosted Actions runner (the canary-local job) |
0 |
complete, 30 products in 5 rounds |
For comparison: a US residential proxy (--proxy) |
0 |
complete, 20 products in 3 rounds |
Re-measured 2026-11-18 at commit c67ce71 from a Hetzner datacentre
address, Playwright, no proxy, no key, no account, no .env:
--query "whole milk" --max-results 20 gave complete, 20 products in 3
rounds, exit 0; the same with --store-id US01449 also exit 0 (see
Verification).
No bot challenge appeared on any of them. Datacentre addresses are the kind
sites refuse most often, so a home connection was not measured separately.
One earlier scheduled canary (2026-11-02, GitHub runner) got lidl.com’s home
page instead of the search results and exited 4; the next manual run from
the same kind of runner passed. If a search comes back empty, re-run it
with --dump-html before reading it as a real zero.
Install
Pick one engine (installing more than one into the same environment is not
supported — see “Engines” below):
pip install -r requirements-playwright.txt && playwright install chromium # primary
pip install -r requirements-selenium.txt # needs a matching chromedriver
pip install -r requirements-puppeteer.txt # pyppeteer — see its own warning below
Copy .env.example to .env — leave it blank for a normal first run (see
“Local-first” above) and fill in what you use later. python3 env_config.py
shows what was picked up without ever printing a secret.
Usage
# a product search
python3 playwright_scraper.py --query "whole milk" --format json --out lidl_results.json
# priced at one store, by store number or by zip, with a result cap
python3 playwright_scraper.py --query "sourdough bread" --store-id US01449 --max-results 20
python3 playwright_scraper.py --query "sourdough bread" --zip 07086
# cheapest first (also: price_desc, newest)
python3 playwright_scraper.py --query milk --sort price_asc
# an aisle or a weekly-deals listing, as a path copied from lidl.com's navigation
python3 playwright_scraper.py --category h/cheese-dairy-eggs/h10095761 --max-results 200
python3 playwright_scraper.py --category aw42-fresh-deals/a10104750
# one product page
python3 playwright_scraper.py --url "https://www.lidl.com/p/whole-milk/p11675058"
# a full lidl.com URL directly (escape hatch — cannot be combined with
# --query/--category; a typed --query/--category also wins over LIDL_URL)
python3 playwright_scraper.py --url "https://www.lidl.com/q/search?q=milk"
# with 2Captcha's Scraping Browser API (opt-in — see "Local-first" above)
python3 playwright_scraper.py --query "whole milk" --cdp-endpoint "$LIDL_CDP_ENDPOINT"
selenium_scraper.py and puppeteer_scraper.py accept the identical flag
set and produce the identical output contract — see “Engines” for the two
places they genuinely can’t behave the same as Playwright.
Flags
--url --query --category --zip --store-id --sort --max-results --max-scrolls --stall-rounds --scroll-delay --format --out --retries --retry-delay --proxy --proxy-file --proxy-shuffle --proxy-block-retries --twocaptcha-key --captcha-api --solve-captcha --min-score --cdp-endpoint --fingerprint --fp-tags --fp-country --allow-empty --dump-html --headless/--headful
Identical across all three engines — a smoke_test.py check asserts the
three parsers’ flag sets never drift apart. --fingerprint/--fp-tags/
--fp-country apply to all three engines: each sets whatever user agent
the 2Captcha Fingerprint API returns via its own driver’s real primitive
(Playwright’s new_context(user_agent=...), pyppeteer’s
page.setUserAgent(), Chrome’s own --user-agent= switch under
Selenium) — see “What this repo deliberately does NOT apply from a
fingerprint” below. --captcha-api overrides the 2Captcha REST base URL
(testing only). --min-score is 2Captcha’s own minScore field on a
RecaptchaV3Task request (0.3 default, matching the rest of the family).
--store-id (US01449 or 1449) prices the run at that store; --zip
picks the store in that zip, or the numerically closest one sharing its
first three digits, and logs which. Either looks the store up in Lidl’s
store API with the public key the site’s own store search sends, read
from the site at run time, and every row then records the store actually
used. That lookup is made directly from this machine, not through
--proxy or --cdp-endpoint. A store that does not exist is a usage error (exit 2); an
unreachable store API is exit 5. --category takes a path from the
site’s navigation: h/…/h… aisle listings, …/a… weekly-deals
listings, or …/s… pages, which are often landing pages with no product
grid. --max-scrolls defaults to max(20, --max-results / 4 + 10).
Family flags that don’t apply here — and why
--pages: lidl.com’s search/specials pages are treated as a single
scroll-based results page here (see “Pagination” below), the same
structural reason skyscanner-scraper omits it — --max-scrolls/
--stall-rounds are this repo’s actual equivalent. The batched grid and
its View More Products control are live-verified (see
Pagination).
--concurrency / --proxy-rotate: same reasoning as
skyscanner-scraper — a single scroll-based page has no independently-
addressable units to parallelize or rotate an exit between.
proxy_pool.ProxyPool.worker_view() is still ported verbatim per the
family’s “copy the core, verbatim” rule and stays tested, for if a
future feature (e.g. running several search terms as a batch)
introduces an actual parallelizable unit.
What this repo deliberately does NOT apply from a fingerprint
fingerprint_client.py only ever extracts and applies the user agent from
a 2Captcha Fingerprint API profile — never a locale or timezone, for the
same reason skyscanner-scraper states: this session could not get a
confirmed field name for either from 2Captcha’s own public reference, and
a previous family member shipped a fabricated locale that went unnoticed
for months. Omitting a signal honestly beats guessing it.
Credentials belong in .env / LIDL_PROXY / TWOCAPTCHA_KEY — never as
literal --proxy/--twocaptcha-key text on a shared or logged command
line if you can avoid it.
Output contract
Product (output_writer.py) — family-common columns first, grocery-item
columns after:
sku, source, category, title, brand, price, currency, price_source, product_url,
image_url, scraped_at,
unit_price, unit_price_per, unit_size, original_price, discount_pct,
is_weekly_deal, lidl_plus_price, deal_valid_from, deal_valid_until, store_id,
zip_code
Unlike skyscanner-scraper’s flight itineraries, a Lidl catalog item
genuinely has a stable identity: sku is lidl.com’s own product id/GTIN
when lidl_parser.py can extract one, falling back to a deterministic
fingerprint of product_url only when it can’t. brand is the actual
product brand printed on the item. category is the grocery
aisle/category lidl.com itself assigns, when available. price_source is
embedded_json or dom, mirroring which extraction path actually
produced the row — never a defaulted guess. sample_output.json and
sample_output.csv are trimmed from the verified live Playwright run.
Exit codes: 0 complete · 1 crash · 2 bad usage · 3 blocked
(no rows) · 4 zero products, and nothing on the page says products exist ·
5 the content was never obtained (a navigation failure, a remote API/CDP
error, or a served page whose own “N Products” counter states products
while the parser recognised none) · 6 partial (rows were collected, then
something failed or the grid came up short). Every completed/partial run
writes a <out>.meta.json sidecar with status, stop_reason (why the
run ended: max_results, stalled, max_scrolls, incomplete_grid, …),
pages_completed (scroll rounds, here), failed_pages,
price_confirmed_pct and csv_cells_escaped. An empty, blocked or
never-obtained run writes no output and no sidecar, so it can never
overwrite a previous good run (--allow-empty opts out of that). The one
exception is a parser failure: its sidecar IS written (status: failed,
stop_reason: parser_found_nothing, output_written: false) beside the
untouched previous output, because “our selectors lost the rows” is
something a consumer needs to see.
Writes are atomic (a temp file in the same directory, renamed into place),
so an interrupted run never leaves a truncated file. In CSV only, a text
cell starting with =, +, -, @, a tab or a line break is prefixed
with ' so a spreadsheet does not execute it; JSON keeps the site’s exact
text, and the sidecar’s csv_cells_escaped says how many cells differ.
Lidl’s grid is both batched and virtualized. Each engine walks the page in
viewport-sized steps so every transient tile is parsed, clicks the confirmed
View More Products control only after the current batch has stabilized,
and dedupes by sku. The page’s own N Products counter is an arithmetic
completeness check: if fewer than min(N, --max-results) rows were captured,
the run is partial (exit 6), never a plausible-looking complete result.
Live verification on 2026-09-20: --query milk --max-results 60 returned 60
unique SKUs in 11 rounds with status=complete and price coverage 1.0.
Engines
Playwright is primary; Selenium and pyppeteer are parity copies — all
three agree on exit codes and the Product schema via the shared
output_writer.finish_run(). Real, stated limits (identical to the rest
of the family’s, since these are properties of the drivers, not the
site):
- Selenium cannot use an authenticated remote CDP endpoint.
chromedriver’s
debuggerAddress takes a bare host:port; the Scraping
Browser API’s ws://login:pass@host:port shape needs an authenticated
WebSocket upgrade, which only Playwright’s connect_over_cdp and
pyppeteer’s connect support. selenium_scraper.py refuses a
credentialed --cdp-endpoint outright (exit 2).
- Selenium’s
--proxy-server cannot authenticate at all. A --proxy
with credentials has them stripped before reaching Chrome, with a loud
warning — never a silent no-op.
- No engine can authenticate to a SOCKS proxy. Chromium does not
support SOCKS authentication, so a
socks5://user:pass@… proxy is
refused up front (exit 2). A SOCKS proxy without credentials works;
otherwise use the provider’s HTTP endpoint.
- pyppeteer is effectively unmaintained (its own README points at
Playwright) — shipped for parity, not as a recommendation.
- Install exactly one engine per environment — Playwright and
pyppeteer declare mutually unsatisfiable
pyee pins, and pyppeteer
collides with Selenium’s urllib3 pin. Use a venv per engine, same as
.github/workflows/tests.yml’s engine-smoke job.
Development
python3 smoke_test.py # or: pytest tests/test_smoke.py
Passes with no engine library installed at all (each engine guards its
driver import behind a module-level try/except ImportError).
Testing against the live site: see TESTING.md. All three
engines, store binding, images and discounted tiles ran live on 2026-10-18
(see Read this before trusting a run);
TESTING.md records what is still unverified.
FAQ
Does Lidl have a public API?
This repository does not use a product API. It reads the search and listing
tiles’ own data-gridbox-impression JSON in a real browser, and a product
page’s schema.org Product block. Picking a store calls Lidl’s store API
with the public key the site’s own store search sends, read from the site at
run time.
Is there a Lidl scraper API?
No hosted API: this is a command-line tool you run yourself, and one command
writes the rows to JSON or CSV with a .meta.json file beside them that
records whether the run completed. To run it on a schedule, put the
Quick start command in cron or a CI job.
Is it legal to scrape lidl.com?
This is not legal advice. Scraping public pages is permitted in many
jurisdictions, but lidl.com’s terms of use, copyright in product texts and
images, and data-protection law differ between countries. The output is
product and price data from public pages, and the scraper does not log in.
Keep the request rate low and do not collect personal data without a lawful
basis.
Why does Lidl block headless browsers or datacentre IPs?
It did not in any measured run, and no key or proxy is needed: headless
Playwright from a Hetzner datacentre address returned complete runs on
2026-11-05 and 2026-11-18, and so did a GitHub runner. No bot challenge
appeared, and no lidl.com block page has been captured yet. If a search
comes back empty, re-run it with --dump-html before reading it as a real
zero.
How do I run the Lidl scraper on a server?
Exactly as in the Quick start: headless is the default, and
no display, key, proxy or .env is needed. The canary-local job runs a
search weekly on a GitHub runner that way. For a scheduled job, branch on
the exit code and on status in the .meta.json sidecar.
What fields does the scraper return?
22 columns per product, in the same order in JSON and CSV: sku, source,
category, title, brand, price, currency, price_source,
product_url, image_url, scraped_at, unit_price, unit_price_per,
unit_size, original_price, discount_pct, is_weekly_deal,
lidl_plus_price, deal_valid_from, deal_valid_until, store_id,
zip_code. See Output contract.
Can I get prices for a specific Lidl store?
Yes: --store-id US01449 (or 1449), or --zip 07086 for the store in that
zip or the closest one sharing its first three digits. Prices depend on the
store — on 2026-10-18 the same gallon of whole milk read $4.25 in Weehawken
NJ, $5.09 in Philadelphia and $2.57 in Charlotte against $3.48 with no
store — and unit_price_per can change with it, so compare unit prices only
where the units match. Every row records the store actually used.
A weekly canary runs a real search from a GitHub runner with no key or
proxy; it has been green every week since 2026-10-19 except one run that got
the home page instead of results (2026-11-02). The canary’s separate
Scraping Browser job is red because its stored login is refused, not
because of the site. Fixes
are recorded in CHANGELOG.md.
Same CLI conventions, same output contract (one row per item, JSON or CSV, a .meta.json sidecar and shared exit codes):
All scrapers: github.com/2scraper · Need another site? Open a request
License
MIT — see LICENSE.
评论