-
Notifications
You must be signed in to change notification settings - Fork 230
how to scrape tender notices playwright
To scrape public tender notices with Playwright, key every row on the notice identifier plus the lot identifier rather than on the buyer and the title, take each deadline from the offset-bearing value in the underlying response instead of the string the page rendered, filter on classification codes rather than free-text titles, and make every re-scrape reconcile a revision and a status onto the existing row instead of appending a new one. Notices are documents about a procurement, not the procurement itself, and that distinction decides the whole schema.
The same purchase is published several times over its life. An authority signals an intention, then calls for tenders, then corrects the call, then announces who won, then records a change to the running contract. Each of those is a separate document with its own publication identifier, its own date and its own set of fields, and each one appears on the portal with roughly the same title and the same buyer.
Treat them as duplicates of one record and you delete exactly the information anyone wanted: the deadline that moved, the estimated value against the awarded value, the fact that a contract grew by forty percent after signature. This page is the row shape that keeps all of it, the fields that break first, and where driving a browser stops being the right tool.
Dedupe on the notice identifier. Group on the procedure reference. Never dedupe on buyer plus title, because that is precisely the pair every notice in a lifecycle shares.
The notice identifier is the identifier of the document. The procedure reference is the buyer's own file number, and it is the thread that ties the lifecycle together, sometimes appearing as a plain reference field and sometimes only as a "refers to notice X" pointer on the later documents. Store both, plus the notice type, and the lifecycle reassembles itself with a group-by instead of a guess.
| Notice type | What it carries that the others do not |
|---|---|
| Prior information | An intention and an indicative date, usually no deadline and no binding value |
| Contract notice | The submission deadline, the lots, the classification codes, the estimated value |
| Corrigendum | One changed field on an already published notice, most often the deadline |
| Award notice | The winner, the number of bids received, the value actually contracted |
| Modification | A change to a contract that is already running, with a new value |
The type is not cosmetic. A pipeline that sums value across a procedure without filtering on type will add an estimate, a maximum and an awarded figure together and produce a number that describes nothing.
One notice is frequently divided into lots, and the lot is what a supplier actually bids on. Lots carry their own titles, their own classification codes, their own values, their own awards, and occasionally their own deadlines. A notice-level row flattens all of that into whichever lot happened to be first.
So expand at read time and normalise the shape: a notice with no lots becomes a single lot with a fixed synthetic identifier, so downstream code never has two shapes to handle. The fallback direction is always lot first, notice second, and never the reverse.
from dataclasses import dataclass, field
from decimal import Decimal
from typing import Optional
@dataclass
class TenderRow:
notice_id: str # identifier of THIS document
procedure_ref: str # buyer's file number, shared across the lifecycle
notice_type: str # prior_information | contract | corrigendum | award
lot_id: str # "1", "2" ... or "0" when the notice has no lots
title: str
buyer: str
cpv_codes: list = field(default_factory=list)
deadline_local: Optional[str] = None # exactly as published, unconverted
deadline_utc: Optional[str] = None # only when an offset was available
deadline_tz_known: bool = False
value_amount: Optional[Decimal] = None
value_currency: Optional[str] = None
value_vat_included: Optional[bool] = None # tri-state, None means unstated
value_basis: Optional[str] = None # estimated | maximum | awarded
status: str = "active" # active | amended | withdrawn | awarded
revision: int = 1
content_hash: str = ""
def expand_lots(notice: dict) -> list:
lots = notice.get("lots") or [{"id": "0"}]
return [
TenderRow(
notice_id=notice["id"],
procedure_ref=notice.get("procedureRef") or notice["id"],
notice_type=notice["type"],
lot_id=str(lot.get("id", "0")),
title=lot.get("title") or notice["title"],
buyer=notice["buyer"],
cpv_codes=lot.get("cpv") or notice.get("cpv") or [],
)
for lot in lots
]("notice_id", "lot_id") is the primary key for everything that follows. Every later
step in this page, the deadline, the value, the attachment inventory and the reconcile,
operates on that pair.
The submission deadline is the field the whole dataset turns on, and the rendered string almost never carries the zone. "31/03/2026 12:00" is a two-hour question at noon and a different-day question at 23:30. Get the offset wrong near midnight and the date itself flips, which is the version of this bug that survives review because the time still looks plausible.
Worse, some portals convert the deadline to the client's clock before painting it. The browser timezone is derived from the egress IP, so two exits produce two different deadlines for the same notice, and neither of them is what the buyer published. That is a timezone and locale mismatch turned into a data error rather than a detection one.
The value with the offset usually exists, just not in the text node. It is in the JSON the
detail view fetches, or in the datetime attribute of a <time> element while the
element's text carries the localised string. Read the attribute or the response, never the
rendered text. Capturing that response directly is the same technique as
capturing XHR and API responses.
from datetime import datetime, timezone
def read_deadline(page, url):
"""Return (as_published, utc_iso, tz_known). Never invent the zone."""
with page.expect_response(
lambda r: "/notice/" in r.url and r.request.resource_type in ("xhr", "fetch")
) as caught:
page.goto(url, wait_until="domcontentloaded")
raw = caught.value.json().get("submissionDeadline")
if not raw:
return None, None, False
# fromisoformat accepts a trailing Z from 3.11 on; the replace keeps
# the same line working on older interpreters.
parsed = datetime.fromisoformat(raw.replace("Z", "+00:00"))
if parsed.tzinfo is None:
# No offset anywhere. Store it naive and flag it. Do NOT borrow the
# browser's zone, which follows the proxy exit, not the buyer.
return raw, None, False
return raw, parsed.astimezone(timezone.utc).isoformat(), TrueKeep the published string as well as the computed instant. And if you ever do have to
attach a zone by hand, attach a zone name through zoneinfo, not a fixed offset: a
deadline in late March sits on the other side of a clock change from the day you scraped
it, so a hardcoded plus-two is wrong for half the year.
Titles are written by hundreds of different authorities in free text, in several languages, with internal project names, abbreviations and department jargon. A keyword filter over that column misses most of what it should catch and catches things it should not. The classification code is the only field with a controlled vocabulary behind it.
The common procurement vocabulary is eight digits plus a check digit, and the hierarchy lives in the prefix: the first two digits are the division, the first three the group, the first four the class. That means one prefix test covers a whole branch, and a broad filter and an exact code can sit in the same expression.
import re
CPV_RE = re.compile(r"\b(\d{8})(?:-\d)?\b")
def normalize_cpv(text: str) -> list:
"""Every 8-digit code in a CPV field, check digit dropped."""
return [m.group(1) for m in CPV_RE.finditer(text or "")]
def matches_any_prefix(codes, prefixes) -> bool:
return any(code.startswith(p) for code in codes for p in prefixes)
WANTED = (
"45", # division: construction work
"7112", # class: engineering design services
"48000000", # exact code: software packages and information systems
)
selected = [row for row in rows if matches_any_prefix(row.cpv_codes, WANTED)]Keep every code you find, not just the main one. The real subject of a lot is often in the second or third additional code while the main code is a generic parent. Supplementary codes are letter-prefixed and describe an attribute rather than a subject, so they belong in their own column and must not be mixed into the prefix test.
Where this stops: the code is typed by a person at the buyer's office, and it is sometimes too generic or simply wrong. It is the best filter available, not a correct one. Keep the title text alongside it for a second pass, and expect a small tail that only a human reading the title will ever classify properly.
The number is the easy part. What makes value fields unusable is that the same portal is inconsistent about the other three facts across notices: the currency, whether the figure includes tax, and whether it is an estimate, a ceiling or an amount actually contracted. One column of floats destroys all three.
Store four fields plus the raw string, and let unknown stay unknown. None for the tax
treatment is a row you can exclude from a total. False guessed by a default is a row
that pollutes the total and looks perfectly healthy while it does it.
import re
BASIS_HINTS = (
("maximum", "maximum"), ("ceiling", "maximum"), ("up to", "maximum"),
("estimated", "estimated"), ("indicative", "estimated"),
("awarded", "awarded"), ("final value", "awarded"),
)
def parse_value(raw, currency_field="", vat_field="", parse_amount=None):
"""Split a published value into the facts it actually contains."""
text = (raw or "").strip()
blob = f"{text} {vat_field}".lower()
vat = None # unstated stays unstated
if any(k in blob for k in ("excluding vat", "excl. vat", "net of vat")):
vat = False
elif any(k in blob for k in ("including vat", "incl. vat", "vat included")):
vat = True
basis = None
for hint, label in BASIS_HINTS:
if hint in blob:
basis = label
break
currency = (currency_field or "").strip().upper() or None
if currency is None:
found = re.search(r"\b([A-Z]{3})\b", text)
currency = found.group(1) if found else None
# parse_amount is a locale-aware parser, never a chain of str.replace calls
return {
"amount": parse_amount(text) if parse_amount else None,
"currency": currency,
"vat_included": vat,
"basis": basis,
"value_raw": text,
}The digits themselves are a locale problem, not a procurement one, and it is already solved next door in cleaning scraped prices and dates. Delegate to that parser instead of writing a second one here. The rule that survives the whole exercise is simple: never sum a column that mixes basis values, and never sum across currencies without recording which rate and which date produced the conversion.
Most of the substance is not on the notice page. It is in the tender documents: the specification, the bill of quantities, the drawings, the contract template, the clarification log. Downloading all of them on every run is slow, expensive in storage, and the single most conspicuous request pattern a scraper can produce on a portal.
Inventory first. If the documents tab fires its own request, that response usually carries
filename, size, media type and a document identifier already, which is the cheapest
possible answer. When it does not, issue a HEAD through page.request, which shares the
cookie storage and the proxy of the browser context, so a session-gated document link
answers instead of redirecting to a login page.
def list_attachments(page, links):
"""Inventory documents without pulling their bytes."""
inventory = []
for href in links:
resp = page.request.head(href, max_redirects=5)
if resp.status in (403, 405): # server refuses HEAD
resp = page.request.get(href, headers={"Range": "bytes=0-0"})
headers = resp.headers # keys are lowercased by Playwright
inventory.append({
"url": href,
"media_type": headers.get("content-type", "").split(";")[0],
"size": headers.get("content-length"),
"last_modified": headers.get("last-modified"),
"etag": headers.get("etag"),
"disposition": headers.get("content-disposition", ""),
})
return inventoryThen fetch selectively: only the media types you actually parse, and only when the
(etag, last-modified, content-length) tuple has changed since the last run. Clarification
documents get republished constantly, and that tuple is what tells you which one moved. The
file download mechanics apply once you decide to
pull one. Two honest gaps: a streamed response can omit content-length entirely, and some
servers return the same last-modified for a regenerated file, so the tuple detects most
changes rather than all of them.
Notices are amended after publication and sometimes withdrawn while staying visible, with
a status flag instead of a 404. Awards arrive months later against the same procedure. So
the second run is an upsert on ("notice_id", "lot_id"), comparing a hash over the fields
that matter, bumping a revision and archiving the previous version.
import hashlib
import json
TRACKED = ("title", "deadline_local", "deadline_utc", "value_amount",
"value_currency", "value_vat_included", "value_basis",
"cpv_codes", "status")
def content_hash(row: dict) -> str:
payload = json.dumps({k: str(row.get(k)) for k in TRACKED}, sort_keys=True)
return hashlib.sha256(payload.encode("utf-8")).hexdigest()
def reconcile(store, row: dict) -> str:
key = (row["notice_id"], row["lot_id"])
row["content_hash"] = content_hash(row)
previous = store.get(key)
if previous is None:
row["revision"] = 1
store.put(key, row)
return "inserted"
if previous["content_hash"] == row["content_hash"]:
store.touch(key) # update last_seen and nothing else
return "unchanged"
row["revision"] = previous["revision"] + 1
store.archive(key, previous) # keep the old deadline and old value
store.put(key, row)
return "revised"Three outcomes, and "appended" is not one of them. A run reporting nine hundred inserts on a portal you already hold is not a good run, it is a broken key, and the counts are the cheapest place to notice that. The same shape as incremental scraping, with one extra rule that matters more here than anywhere else.
That rule: absence from a listing is not a withdrawal. A notice drops out of a result set
because a facet changed, because the default date window rolled forward, or because
pagination shifted under you. Mark a row withdrawn only when the notice page itself says
so. Everything else gets a stale last_seen and keeps its status.
Check for a documented listing endpoint or a bulk export before writing a selector. Many procurement portals publish one, and when they do, an API client beats a browser on every axis that matters. That check is the whole first move in scraping open data portals, and it is worth ten minutes before any of the code above.
A browser earns its place in three narrower cases: the search form builds its query in JavaScript so the result URL is not constructible by hand, the document links are gated on a cookie the page sets, and the detail view fetches the offset-bearing JSON that the server-rendered HTML never shows. All three are real, and all three are why this page exists.
What no amount of session realness fixes: a registration wall, an accepted-terms step, an account tied to a verified legal entity, or a qualified signature certificate on the submission side. Those are authorisation, not detection, and this library does not solve captchas either. If the document list sits behind a login you are entitled to hold, that is a credentials problem with a session behind it, not a fingerprinting one.
Tender data punishes a schema chosen for the page instead of the domain. The notice is a document, not a purchase, so the key is the notice identifier and the lot, with the procedure reference tying the lifecycle together. The deadline is only a deadline once it carries an offset that came from the response, not from the browser's clock. The classification code is the only filter with a vocabulary behind it, and it is still imperfect. A value is four fields, and unknown has to stay unknown. Attachments get inventoried before they get downloaded. And the second run reconciles onto the first, because the amendment, the withdrawal and the award are the entire reason anyone tracks this in the first place.
The same tender appears four times. Should I deduplicate it? No. Those are four documents about one procurement: a prior information notice, a contract notice, a corrigendum and an award notice. Dedupe on the notice identifier and group on the procedure reference, never on buyer plus title.
Why is my scraped deadline off by an hour, or by a day? The rendered string carried no
timezone and something filled one in. Take the deadline from the offset-bearing value in
the response or the datetime attribute, and if no offset exists anywhere, store the
value naive and flag it rather than guessing.
Should I store one row per notice or one per lot? One per lot. Lots carry separate values, separate classification codes, separate awards and sometimes separate deadlines. A notice without lots becomes a single lot with a fixed identifier so the shape stays uniform.
How do I filter tenders by subject reliably? On classification codes, using prefix matching, because the hierarchy is in the prefix. Titles are free text from hundreds of authorities. Keep every code on the record, not only the main one, and accept that a mistyped code is a real residual error.
Do I have to download every attached document? No. HEAD each link through
page.request so it inherits the session cookies, record media type, size, etag and
last-modified, then fetch only the types you parse and only when that tuple changes.
A notice vanished from my search results. Was it withdrawn? Probably not. Facets, date
windows and pagination all remove rows from a result set. Mark a row withdrawn only when
the notice page states it, and otherwise just let last_seen go stale.
- Playwright Python
Page.expect_response, retrieved 2026-08-28, used to capture the detail request that carries the offset-bearing deadline. - Playwright Python
Page.requestandAPIRequestContext.head, retrieved 2026-08-28: the request context attached to a page shares cookie storage with its browser context, which is why a session-gated document link answers a HEAD issued through it, and response header keys are lowercased. - Playwright Python
Locator, retrieved 2026-08-28, for reading thedatetimeattribute rather than the rendered text. - The common procurement vocabulary's published structure: eight digits plus a check digit, hierarchy carried in the prefix by division, group and class, with letter-prefixed supplementary codes describing attributes rather than subjects.
- CPython's
datetime.fromisoformat, which accepts a trailing Z from 3.11 onward and returns a naive datetime when the string carries no offset. That naive return is the condition the deadline parser branches on.
See also: capturing XHR and API responses for the response that carries the deadline offset, cleaning scraped prices and dates for the locale-aware number parse the value splitter delegates to, scraping into a database for the upsert and history tables the reconcile step writes into, and scraping search results forms for driving the faceted query that produces the notice list in the first place.
Written while maintaining invisible_playwright, a Firefox patched at the C++ level driven by stock Playwright. Keying rows on buyer plus title is a mistake that shipped here: it merged a contract notice with its award notice, overwrote the deadline with an award date, and the loss was only spotted because a count of procedures came back larger than the count of notices.
Documentation
Guides
-
Browser Identity
- navigator.webdriver is not the tell you think it is
- hardwareConcurrency, deviceMemory and storage quota
- Screen size and viewport tells in headless browsers
- Playwright headless vs headed: what detectors see
- Playwright User Agent: Why You Should Not Set It
- Client Hints and Sec-Fetch: headers that must agree
- Codec fingerprinting: canPlayType and MediaCapabilities
- Permissions API: the two answers that must agree
- CSS fingerprinting: what media queries reveal
- What privacy.resistFingerprinting actually does
- speechSynthesis.getVoices() returns an empty array
- Browser extensions are a fingerprint surface
- BFCache and pageshow.persisted under browser automation
- Service workers, storage partitioning and automation
- Web Workers: where page-level fingerprint patches fail
- fake-useragent is archived: what changes and what doesn't
- navigator.buildID and the stale build date tell
- navigator.maxTouchPoints and pointer consistency
- navigator.platform and oscpu on a spoofed OS
- navigator.vendor and productSub: the Firefox tells
- Accept-Language header vs navigator.languages
- window.devicePixelRatio: the pref that spoofs it
- Can you be fingerprinted in incognito mode?
- Is changing the user agent enough to avoid detection?
- Can a website tell you are running on a server?
- Can two devices share a browser fingerprint?
- Does clearing cookies stop fingerprint tracking?
- Color-gamut and HDR media queries as a fingerprint
- Battery API fingerprint: does Firefox expose it?
- Is navigator.connection a fingerprint in Firefox?
- Can the Gamepad API fingerprint or detect a bot?
- Do accelerometer and gyroscope APIs leak on desktop?
- prefers-reduced-motion and other OS-setting tells
- Does storage quota estimate reveal disk size?
- Can scrollbar width reveal my operating system?
-
Canvas, WebGL, Fonts and Audio
- Canvas fingerprint noise: why per-call randomising fails
- Firefox WebGL renderer strings: what ANGLE reports
- WebGL parameters: the numbers are the same on every GPU
- Your renderer string says NVIDIA. Your pixels say software.
- Why headless browsers render different fonts
- How to make Linux and macOS report real Windows fonts
- measureText and TextMetrics as a fingerprinting surface
- AudioContext fingerprinting, and why adding noise backfired
- Canvas and WebGL fingerprints, identical across OSes
- Emoji fingerprinting: why emoji look the same on any OS
- Detecting installed fonts in JavaScript by width
- WebGL shader precision as a fingerprint surface
- AudioContext sampleRate and latency as a fingerprint
- Is WebGPU a browser fingerprint?
-
Network, Proxy and WebRTC
- WebRTC leak with a proxy in Playwright and Selenium
- WebRTC ICE candidate spoofing: the fields that give it away
- Playwright proxy in Python: per-context, and what leaks
- Playwright proxy not working? SOCKS5 auth in Python
- Playwright timezone does not match the proxy IP
- JA3 and JA4: why a TLS fingerprint cannot be patched
- Playwright in Docker: it runs, and still gets blocked
- Web scraping keeps getting blocked with good proxies
- Python web scraping blocked? The TLS fingerprint reason
- SOCKS5 vs HTTP proxy: what each does in the browser
- WebRTC IPv6 leak: why a proxy does not stop it
- HTTP/2 fingerprint: the layer above the TLS handshake
- TLS fingerprint vs User-Agent: the contradiction
- WebRTC has no ICE candidates behind a proxy
- WebRTC IP that matches the proxy exit, by design
- How to check if a proxy leaks your real IP
- about:webrtc: read your real ICE candidates
- Offline timezone resolution from a proxy exit IP
- Residential vs datacenter vs mobile proxies explained
- Sticky vs rotating proxy sessions: which to use
- Does a proxy leak DNS? DoH and DNS leaks explained
- HTTP/3 and QUIC fingerprint: what a site sees
- What is ASN and IP reputation in bot detection?
- What does a mobile carrier IP look like to a site?
- IPv6 vs IPv4: which does your proxy expose?
- Geolocation API vs IP location: keep them consistent
- Does chaining two proxies help avoid detection?
-
The Automation Layer
- Function.prototype.toString and the [native code] check
- The ChromeDriver
cdc_variable, and why renaming it fails - Why an attached debugger makes automation detectable
- Execution context was destroyed, and when it means detection
- Human-like mouse movement: Bezier curves are the easy part
- Why a Playwright upgrade broke 97 of 133 tests overnight
- Playwright persistent profile: what it fixes and breaks
- Why humanized mouse movement can fail on hover()
- Why content_frame() returns None for a cross-origin iframe
- Orphaned Firefox processes on Windows: the killed-runner leak
- Firefox launches but Playwright can't drive it: packaging gap
- Why automating login is riskier than reusing a session
- Playwright new_page vs new_context: the viewport tell
- Playwright dialog and popup handling without a tell
- Playwright download files with Firefox and the tell
- Playwright connect_over_cdp does not work with Firefox
- Playwright mobile emulation on Firefox and isMobile
- Playwright isTrusted: are automated clicks real?
- Playwright set_input_files uploads and the tell
- Can websites detect Playwright? What is actually visible
- Does Playwright Set navigator.webdriver to True?
- Does Playwright Leave Traces a Website Can See?
- Does Playwright Change My Browser Fingerprint?
- Can I Use My Real Browser Profile With Playwright?
- Does Playwright Support Firefox Stealth?
- Is Playwright Firefox Harder to Detect Than Chromium?
- Does Playwright Get Detected on the First Request?
- Why Playwright's bundled Firefox is easy to detect
- ghost-cursor human mouse paths with Playwright
- Stock Playwright, patched Firefox: how they connect
- Intercept and mock network requests with page.route
- Record and replay HTTP traffic with HAR in Playwright
- Record a Playwright trace to debug a failed scrape
- Record a video of a Playwright browser session
- Save and reuse login with storage_state in Playwright
- Read and set cookies in a Playwright context
- Set geolocation and permissions per Playwright context
- Handle HTTP basic auth in Playwright (http_credentials)
- Isolate identities with a browser context per session
- Drag and drop elements in Playwright with drag_to
- When to use an HTTP client vs a real browser
- Migrating from requests + BeautifulSoup to a browser
-
AI Agents and Frameworks
- AI browser agents and stealth: what fits and what does not
- browser-use gets detected: what you can and cannot change
- crawl4ai stealth mode and custom browser engines
- Give a LangChain agent an invisible_playwright browser
- Feed invisible_playwright pages into a RAG index
- Computer-use agents and browser fingerprint detection
- Give an MCP browser server a stealth Firefox engine
- Give each AI agent a reproducible browser identity
- Run parallel browser agents with distinct fingerprints
- Why AI browser agents have their own timing signal
- Running an AI browser agent headless on a server
- Give a browser agent a persistent logged-in session
- smolagents: hand the agent an invisible_playwright tool
- Stagehand and stealth: why a Firefox engine won't drop in
- DOM-reading vs screenshot agents: which stealth helps
- Back a computer-use agent with a real browser engine
- AI agent retry loops trip rate limits, not fingerprints
-
Detectors, Explained
- What bot.sannysoft.com actually checks, row by row
- How CreepJS decides you are lying
- What BotD actually detects, and what it does not
- Why a FingerprintJS visitor ID changes
- reCAPTCHA v3 score: why a fresh browser scores badly
- BrowserLeaks canvas and WebGL hash, explained
- What BrowserLeaks actually tests, surface by surface
- Browser trust scores explained: what the number means
- How do websites detect bots?
- What is a browser fingerprint?
- What data does a website collect about your browser?
- Does a VPN stop browser fingerprinting?
- Do websites know you are using a script?
- How accurate is browser fingerprinting?
- Can a website detect a virtual machine?
- Can websites detect a datacenter or proxy IP?
- getClientRects fingerprinting: subpixel geometry as ID
- Notification.permission as a bot-detection signal
- speechSynthesis voices as a cross-platform fingerprint
- Can a website detect typing by keystroke timing?
- Can a website detect Clipboard API access?
- What are mouse-dynamics behavioural biometrics?
-
Testing and Troubleshooting
- How to test bot detection without a false pass
- Playwright detected as a bot: the checklist to fix it
- Firefox preferences that silently do nothing
- Slow browser launch: a per-request timeout is not a budget
- Playwright screenshot returns noise: readback fix
- Canvas fingerprint changes every run: use a seed
- Playwright TargetClosedError: the causes and the fixes
- Why am I blocked with a clean fingerprint?
- Why Does My Playwright Script Get Blocked?
- Is Playwright headless detectable? What sites check
- Can You Run Playwright Without Being Detected?
- Why Playwright Works Locally but Fails in the Cloud
- Does Playwright Trigger reCAPTCHA More Often?
-
Scraping with Playwright
- How to scrape without getting blocked
- How to scrape a site that blocks headless browsers
- How to scrape infinite scroll pages with Playwright
- How to rotate proxies when scraping with Playwright
- How to scrape data behind a login with Playwright
- How to run Playwright in Docker without getting detected
- How to use invisible_playwright in Docker
- Playwright bot detection: how to avoid it in Python
- How to scrape paginated pages with Playwright
- How to download files with Playwright
- How to upload files with Playwright, and verify it landed
- How to handle cookie consent banners in Playwright
- How to handle popups and modals in Playwright
- How to take full-page screenshots with Playwright
- How to generate a PDF with Playwright and Firefox
- How to wait for content to load in Playwright
- How to retry failed requests when scraping Playwright
- How to scrape pages in parallel with Playwright
- How to rate limit your own Playwright scraper
- How to scrape HTML tables with Playwright
- How to scrape iframe content with Playwright
- How to scrape shadow DOM content with Playwright
- How to capture XHR and API responses in Playwright
- How to scrape geotargeted content with Playwright
- How to scrape real estate listings with Playwright
- How to scrape job postings with Playwright
- How to scrape e-commerce product pages with Playwright
- How to track product prices with Playwright
- How to scrape hotel room prices with Playwright
- How to scrape flight prices with Playwright
- How to scrape classifieds listings with Playwright
- How to scrape vacation rental listings with Playwright
- How to scrape car listings with Playwright
- How to scrape apartment rentals with Playwright
- How to track product stock and restocks with Playwright
- How to scrape location-based store prices with Playwright
- How to scrape flexible-date fare calendars with Playwright
- How to scrape product reviews with Playwright
- How to scrape reviews and ratings with Playwright
- How to scrape news article text with Playwright
- How to scrape business directory listings with Playwright
- How to scrape event and ticket listings with Playwright
- How to scrape restaurant menu data with Playwright
- How to scrape stock and financial data with Playwright
- How to scrape social media profiles with Playwright
- How to scrape forum and community threads with Playwright
- How to scrape image galleries with Playwright
- How to scrape video listings and metadata with Playwright
- How to scrape map-based local results with Playwright
- How to scrape sports scores and stats with Playwright
- How to scrape cryptocurrency prices with Playwright
- How to scrape deals and coupon codes with Playwright
- How to scrape to CSV with Playwright
- How to scrape to JSON Lines with Playwright
- How to scrape into a SQLite database with Playwright
- How to export scraped data to Excel with Playwright
- How to extract JSON-LD structured data with Playwright
- How to extract Open Graph and meta tags with Playwright
- How to extract links and build a crawl frontier in Playwright
- How to scrape RSS and Atom feeds with Playwright
- How to download images in bulk with Playwright
- How to extract clean article text with Playwright
- How to scrape a sitemap.xml with Playwright
- How to scrape into a pandas DataFrame with Playwright
- How to clean scraped prices and dates with Playwright
- Scrape search results by driving a form in Playwright
- Scrape a map-based search with Playwright
- Scrape autocomplete and typeahead inputs with Playwright
- Scrape date-picker calendars with Playwright
- Crawl list pages to detail pages with Playwright
- Scrape lazy-loaded images with Playwright
- Extract data from canvas charts with Playwright
- Scrape a multi-step wizard flow with Playwright
- How to resume an interrupted scrape with Playwright
- Incremental scraping: only new items since last run
- Handle 403 and 429 backoff mid-scrape in Playwright
- Scrape load-more button pages with Playwright
- Scrape nested pagination with Playwright
- Scrape an SPA that changes URL via history API
- Use BeautifulSoup with invisible_playwright
- Run stealth Playwright tests with pytest fixtures
- Run invisible_playwright concurrently with asyncio
- Run invisible_playwright in GitHub Actions CI
- Can you run invisible_playwright serverless?
- Run invisible_playwright in Celery task workers
- Schedule invisible_playwright scrapes with cron
- Run invisible_playwright headful on a server with Xvfb
- Use invisible_playwright in an Airflow DAG
- Combine invisible_playwright with httpx for speed
- Wrap invisible_playwright in a FastAPI service
- Run invisible_playwright in a Jupyter notebook
- Block images to speed up scraping (and when not to)
- Wait for a specific API response in Playwright
- How to scrape course catalogs with Playwright
- How to scrape store locator pages with Playwright
- How to scrape stock levels with Playwright
- How to scrape accordion and tab content with Playwright
- How to scrape size charts with Playwright
- How to scrape delivery slots with Playwright
- How to scrape appointment availability with Playwright
- How to scrape auction listings with Playwright
- How to scrape public transport timetables with Playwright
- How to scrape GraphQL endpoints with Playwright
- How to scrape virtual scrolling tables with Playwright
- How to scrape shipping rates with Playwright
- How to scrape cursor-based pagination with Playwright
- How to scrape multi-select facet filters with Playwright
- How to scrape currency exchange rates with Playwright
- How to scrape WebSocket streams with Playwright
- How to scrape book metadata with Playwright
- How to scrape professional directories with Playwright
- How to scrape range slider filters with Playwright
- How to scrape currency and locale switchers with Playwright
- How to scrape software changelogs and release notes with Playwright
- How to scrape breadcrumb hierarchies with Playwright
- How to scrape microdata and RDFa markup with Playwright
- How to scrape server-sent events with Playwright
- How to scrape open data portals with Playwright
- How to scrape infinite carousels with Playwright
- How to scrape printer-friendly pages with Playwright
- How to handle A/B test variants when scraping with Playwright
- How to scrape recipe data with Playwright
- How to scrape vehicle recall notices with Playwright
- How to scrape public tender notices with Playwright
- How to scrape nutrition labels with Playwright
- How to scrape podcast episode listings with Playwright
- How to scrape weather station data with Playwright
- How to scrape newsletter archives with Playwright
- How to scrape wine and spirits catalogs with Playwright
- How to scrape insurance quotes with Playwright
- How to scrape fitness class schedules with Playwright
- How to scrape flight seat maps with Playwright
- How to scrape concert and tour dates with Playwright
- How to scrape museum and gallery exhibition dates with Playwright
- How to scrape warranty terms with Playwright
- How to scrape sortable data tables with Playwright
- How to scrape salary and pay scale data with Playwright
- How to scrape live sports scores with Playwright
- How to scrape video game prices with Playwright
- How to scrape domain WHOIS records with Playwright
- How to scrape podcast transcripts with Playwright
- How to scrape patent listings with Playwright
- How to scrape clinical trial listings with Playwright
Comparisons
- Playwright stealth in Python: three levels that work
- Firefox or Chromium for anti-detect automation
- Chromium is not Chrome, and detectors know the difference
- Playwright stealth vs Camoufox: two patched Firefoxes
- Playwright stealth vs Patchright: driver vs engine
- Playwright stealth vs undetected-chromedriver and nodriver
- playwright-stealth vs a patched engine: page vs browser
- puppeteer-extra-plugin-stealth: unmaintained since 2023
- selenium-stealth hasn't been updated since November 2020
- pyppeteer's own maintainer says to switch to Playwright
- invisible_playwright vs rebrowser-patches: the same CDP fix
- invisible_playwright vs fingerprint-suite: injection vs engine
- invisible_playwright vs playwright-with-fingerprints
- invisible_playwright vs Scrapling
- invisible_playwright vs Ulixee Hero
- invisible_playwright vs SeleniumBase UC Mode
- Splash is unmaintained, and it was never a real browser
- invisible_playwright vs DrissionPage
- WebDriver BiDi vs CDP: does the new protocol hide you
- invisible_playwright vs hrequests
- zendriver vs invisible_playwright: Chrome CDP vs Firefox
- botasaurus vs invisible_playwright: framework vs library
- curl_cffi vs invisible_playwright: TLS client vs browser
- pydoll vs invisible_playwright: CDP without a driver
- selenium-driverless vs invisible_playwright stealth
- puppeteer-real-browser vs invisible_playwright
- Migrating from Selenium to Playwright for stealth
- Migrating from Puppeteer to Playwright for stealth
- undetected-chromedriver vs a patched Firefox browser
- scrapy-playwright vs a patched Firefox for stealth
- playwright-extra stealth plugins vs a patched browser
- tls-client vs a real browser: when TLS is enough
- Anti-detect browser or Playwright stealth: which you need
- undetected-playwright vs a patched Firefox binary
Integrations
- Using invisible_playwright with CodeceptJS
- Using invisible_playwright with Crawlee for Python
- Using invisible_playwright with Crawlee for JavaScript
- Using invisible_playwright with scrapy-playwright
- Using invisible_playwright with Robot Framework Browser
- Cypress, WebdriverIO, TestCafe and Nightwatch integration
- Using invisible_playwright with Microsoft's Playwright MCP
- Using the engine from Go, Java, C#, Ruby and Rust
docs/ source folder