* Ten pages on the Selenium/Puppeteer/Python-automation gap the wiki never covered Measured before writing: SERP winnability and demand on the shortlist, and a cosine-similarity gap check against the full 452-page corpus (threshold 0.52), so every title lands where nothing already answers it above that bar. Split from AIHawk's MCP-agent wave on purpose: this wiki is developer mechanism (protocol, driver architecture, what a page can and cannot see), not agent-task language, per the perimeter both wikis already follow. Gates run: english-only clean, no em/en-dash in the new or touched files, all internal .md links resolve to real files, build_wiki.py renders the full 473 pages with zero unresolved .md links in the output. In-body link density (prose only, footer excluded) checked and raised where it was thin - one page shipped at zero in-body links on the first pass, four more under 2/1000 words; all ten now sit between 3.0 and 6.2/1000, matching the range this project already measured (2-5/1000, median 3.4) rather than assumed. What is NOT independently verified this session: several claims (Selenium's WebDriver architecture, CORS enforcement, headless-mode history) are sourced to public documentation linked inline rather than fetched live in this session, and the code/command blocks (curl, Puppeteer's API, Playwright's launch snippet) are written, not executed against a live target. Both are gaps against this project's own pipeline standard and are noted here rather than left implicit. * The same pipeline pass on these ten, and the two defects it found here Titles averaged 42 characters against a house median of 49 and a stated window of 50-60; descriptions ran 198-260 against a house median of 159. All 20 values rewritten, verified by a check that refuses to write when a pair falls outside the window. And the first-party evidence the pipeline requires and these pages did not have. Three now carry a measurement from this project rather than a citation to somebody else's documentation: - The same build rendering text across 48 family/size/weight combinations produced 9-19 distinct alpha levels per render on Windows and 193-256 on Linux, 16 of 48 using all 256. Same code, same display mode, different host. It is the number that separates a machine fact from a headless fact, which is what the headless page is arguing. - An A/B/A on one build: a CSS system-font value read from the host rather than from the declared identity moved a detector from tampering=False/4/0 to True/12/1 and back to False/4/0. One value, both directions. - Font ascent and descent diverged on 58 of 72 families across hosts on one build while every advance width already matched, because shaping is the same in-tree library. The layer below the frameworks is larger than the gap between them, which is what the Selenium-vs-Playwright page needed to say with a number instead of an adjective. Gates: english-only clean, no dashes, no invisible codepoints, no CRLF, all internal links resolve, in-body link density 2.6-10.1 per 1000 words against the measured house range, and the full 473-page wiki renders with zero unresolved links.
37 KiB
title, description, parent, has_children, nav_order
| title | description | parent | has_children | nav_order |
|---|---|---|---|---|
| Scraping with Playwright | Practical how-tos for real scraping problems - blocked headless browsers, infinite scroll, proxy rotation, sessions behind a login - written against a real patched Firefox driven by stock Playwright. | Guides | true | 8 |
Scraping with Playwright
The rest of the Guides explain how a single surface gives you away. This group is the other direction: a concrete task, in order, with the code that does it and the specific thing that breaks it.
Every page here is written against a real browser instead of a generic recipe. The
launch is a two-line change from stock Playwright, the browser returned is a real
Playwright Browser with no wrapped subset to learn, and each how-to carries at least one
mistake we made first, measured and fixed, not assumed.
Start with how to scrape without getting blocked for the model that orders the rest, then pick the task you have.
Get past blocking
- How to scrape without getting blocked - Blocking is five independent layers; fix them cheapest first, looking real beats rotating agents.
- How to avoid bot detection with Playwright - navigator.webdriver patches are level one; a patched engine reaches the rest, with runnable code.
- How to scrape a site that blocks headless browsers - Headless is rarely the block; fix the GPU, font and screen tells instead.
- How to run Playwright in Docker without getting detected - Run in Docker with a real GPU, font set and screen, not six tells.
- How to rotate proxies when scraping with Playwright - A proxy per session, SOCKS5 auth, DNS through the proxy, exit IP matching timezone.
- How to scrape geotargeted content with Playwright - Timezone, locale, number format and geolocation must all agree with the proxy exit IP.
- How to rate limit your own Playwright scraper - Request velocity is a scored signal; throttle with a minimum gap, jitter, concurrency caps.
- Handle 403 and 429 backoff mid-scrape in Playwright - Read 403 and 429 off the response event, honor Retry-After, back off, keep the identity.
- How to retry failed requests when scraping Playwright - Retry with a total time-and-attempt budget; aggressive retries raise a velocity signal.
Page mechanics: waiting, pagination and crawl flow
- How to wait for content to load in Playwright - Why networkidle stalls on long-poll and websockets, and when wait_for_selector or wait_for_function fits.
- Wait for a specific API response in Playwright - Use page.expect_response with a URL predicate, read the JSON at source, and waiting's one limit.
- How to scrape infinite scroll pages with Playwright - A loop that waits for content growth, not a fixed sleep; when to stop, how to dedupe.
- Scrape load-more button pages with Playwright - Re-query the button each round, wait for the count to grow, vary the click timing.
- How to scrape paginated pages with Playwright - Numbered and next-page pagination without the context-destroyed crash: re-query after every page turn.
- Scrape nested pagination with Playwright - Two cursors: keep the outer position across inner navigations, pace the tree, one identity.
- Scrape an SPA that changes URL via history API - history.pushState with no page load: wait on route and DOM markers, capture the view XHR.
- Crawl list pages to detail pages with Playwright - Two phases: collect card links, visit each detail URL, re-associate data, pace the fan-out.
- How to extract links and build a crawl frontier in Playwright - Resolve absolute URLs, strip tracking params, filter same-origin, and dedup with a visited set.
- How to scrape a sitemap.xml with Playwright - Walk the index-to-urlset tree, decompress the .xml.gz leaves, recrawl only changed lastmod URLs.
Forms, widgets and page controls
-
Scrape search results by driving a form in Playwright - Fire the input and change events, get past a JS-gated submit, tell results from zero-results.
-
Scrape autocomplete and typeahead inputs with Playwright - These inputs ignore fill(); type per character to fire the debounced XHR, wait for the listbox.
-
Scrape date-picker calendars with Playwright - Page between months, skip disabled cells, click to commit, sweep a range under one identity.
-
Scrape a multi-step wizard flow with Playwright - Complete each step in order, carry the per-step tokens, keep one identity for the whole flow.
-
How to handle cookie consent banners in Playwright - The accept button sits in a cross-origin iframe; use frame_locator, not force=True.
-
How to handle popups and modals in Playwright - Separate in-page modals, native dialogs and new tabs, and use the right API for each.
-
How to scrape iframe content with Playwright - Use frame_locator for same-origin frames; cross-origin iframes fail for a process-isolation reason.
-
How to scrape shadow DOM content with Playwright - Locators pierce open shadow roots automatically; closed roots stay unreachable by design.
-
Scrape a map-based search with Playwright - Capture the bounding-box marker XHR, pan and zoom, grid the viewport to cover the area.
-
How to scrape map-based local results with Playwright - Drive the viewport, capture the bounds-keyed XHR per step, tile an area through an in-region proxy.
-
Select from dropdowns with Playwright, native and custom - select_option() drives a real select element; a custom listbox needs a click, a wait, then a second click.
Extracting content and structured data
- How to extract JSON-LD structured data with Playwright - Parse JSON-LD and @graph instead of fragile selectors; an empty result reads as a blocked page.
- How to extract Open Graph and meta tags with Playwright - Read the rendered head after JS, resolve relative og:image URLs, apply og:title fallbacks.
- How to scrape HTML tables with Playwright - Pull the whole table in one evaluate_all call, extract before navigating so no rows drop.
- How to extract clean article text with Playwright - Wait for the body, run a readability pass over page.content() to drop nav, ads and chrome.
- How to scrape news article text with Playwright - Pull headline, author and date from JSON-LD, isolate the article node, strip boilerplate.
- Extract data from canvas charts with Playwright - Read the data XHR or the chart library's JS state, not the noised pixels.
- How to capture XHR and API responses in Playwright - Capture JSON with page.on('response') and page.route() instead of parsing HTML.
- How to scrape RSS and Atom feeds with Playwright - Find the feed URL, fetch the XML through the browser, and parse both schemas.
Files, images and media
- How to download files with Playwright - Use expect_download and save_as, keeping the transfer on the browser's proxied exit.
- How to upload files with Playwright - Use set_input_files or expect_file_chooser; the driver fires trusted events, then verify it landed.
- How to download images in bulk with Playwright - Resolve lazy srcset and data-src to full-res URLs, then fetch the bytes inside the page session.
- How to scrape image galleries with Playwright - Scroll to trigger lazy tiles, take the widest srcset, open the lightbox for full-res.
- Scrape lazy-loaded images with Playwright - Read the data-src attribute off the DOM: no scrolling, no downloads. Scroll fallback included.
- How to scrape video listings and metadata with Playwright - Pull exact duration, views and upload date from JSON-LD, fall back to overlays, page the grid.
- How to take full-page screenshots with Playwright - Captured pixels are the true rendered image while the same page's canvas fingerprint is substituted.
- How to generate a PDF with Playwright and Firefox - page.pdf() is Chromium-only; why it is unavailable, plus two capture routes that run on Firefox.
Products, prices and shopping
- How to scrape e-commerce product pages with Playwright - Price and stock live in a variant XHR; select each variant and cross-check the Product JSON-LD.
- How to scrape product reviews with Playwright - Reviews load from a separate endpoint behind a tab; drive the widget, dedupe on review id.
- How to scrape reviews and ratings with Playwright - Read star ratings from aria-label or CSS width, expand Read more, page the load more XHR.
- How to track product prices with Playwright - Wait for the async price widget, keep one fingerprint per item, diff a saved daily time series.
- How to track product stock and restocks with Playwright - Poll the per-variant availability XHR, diff the in-stock boolean, pace to read as one shopper.
- How to scrape deals and coupon codes with Playwright - Codes cloaked behind a reveal button: fire a trusted click, capture from tab, clipboard or XHR.
- How to scrape location-based store prices with Playwright - Drive the store or ZIP picker, verify the location cookie stuck, then align proxy and timezone.
- How to scrape restaurant menu data with Playwright - Read JSON-LD first, fall back to the menu tab XHR, flatten category, size and variant prices.
Listings, travel and live data by vertical
- How to scrape real estate listings with Playwright - Portals re-fetch from a map-bounds XHR and hide price and beds in detail-page JSON-LD.
- How to scrape apartment rentals with Playwright - Trigger the unit-availability XHR, read the per-floorplan price table, key rows on move-in date.
- How to scrape vacation rental listings with Playwright - Drive the date and guest inputs, read the fee-inclusive total from the pricing XHR, iterate windows.
- How to scrape hotel room prices with Playwright - Drive the date and occupancy form, read the rate XHR: rates exist only when you query.
- How to scrape flight prices with Playwright - Wait for the results-complete signal instead of networkidle, then read the settled fare matrix.
- How to scrape flight status boards with Playwright - Snapshot a board that rewrites itself in one evaluation, keep scheduled and estimated apart, key rows on the service day.
- How to scrape ferry schedules with Playwright - Query date by date because sailings are seasonal, keep direction in the key, record cancellations as events.
- How to scrape flexible-date fare calendars with Playwright - Wait for each month's price XHR before reading the grid, page forward across a seed-stable sweep.
- How to scrape event and ticket listings with Playwright - Wait for the availability XHR, normalise event times to the source timezone, step the calendar.
- How to scrape car listings with Playwright - Drive the faceted filter sidebar, wait on the results XHR, pull VIN and specs, then dedupe.
- How to scrape classifieds listings with Playwright - Align proxy region and timezone, harvest cards from the rotating feed, drive a contact-reveal click.
- How to scrape business directory listings with Playwright - Drive the search form, reveal click-gated phone and email, walk filtered pagination as one visitor.
- How to scrape pet adoption listings with Playwright - Reconcile each run against the last so a disappearance is data, and key animals on the shelter's own identifier.
- How to scrape job postings with Playwright - Drive the faceted search filters, wait for the results XHR, and read the JobPosting JSON-LD.
- How to scrape cryptocurrency prices with Playwright - Read WebSocket frames, not the flickering DOM node, and hold the feed open with a stable identity.
- How to scrape EV charging availability with Playwright - Capture the status feed behind the map, keep the operator's timestamp apart from yours, store transitions not snapshots.
- How to scrape fuel prices with Playwright - Set the location explicitly, keep grade and unit with every price, and record whether the number was reported or observed.
- How to scrape snow reports with Playwright - Pin the unit before reading, keep base and summit as separate measurements, and take the resort's own report time.
- How to scrape parking rates with Playwright - Capture the tariff table as duration bands instead of a price, and keep the small print that outranks the table.
- How to scrape energy tariff comparisons with Playwright - Drive the consumption form, keep standing charge and unit rate apart, and copy the inputs into every quoted row.
- How to scrape bank interest rates with Playwright - Resolve the footnote markers while you have the DOM, keep the balance tiers as rows, and take the effective date.
- How to scrape stock and financial data with Playwright - Scrape fundamentals from tables, capture the live quote stream at the WebSocket or polling XHR.
- How to scrape sports scores and stats with Playwright - Read the score feed over a WebSocket, click each stat tab to trigger its XHR, one long session.
- How to scrape forum and community threads with Playwright - Walk the reply tree depth-first, expand collapsed branches over XHR, strip quoted text.
- How to scrape social media profiles with Playwright - Extract each virtualized batch before it scrolls out, parse abbreviated counts, reuse a session.
Output, storage and data cleaning
- How to scrape to CSV with Playwright - Correct delimiter and newline escaping, a UTF-8 BOM spreadsheets read, crash-safe incremental appends.
- How to scrape to JSON Lines with Playwright - Why NDJSON, not one big array, is crash-safe for a long crawl, plus the flush rule.
- How to export scraped data to Excel with Playwright - Export with openpyxl without turning SKUs, barcodes and lot codes into numbers or dates.
- How to scrape into a SQLite database with Playwright - Upsert on a natural key, one transaction per page, idempotent instead of piling up duplicates.
- How to scrape into a pandas DataFrame with Playwright - Feed read_html page.content() for a rendered logged-in table, then fix the dtypes it guesses wrong.
- How to clean scraped prices and dates with Playwright - Parse locale prices and relative dates into typed numbers and UTC timestamps.
Sessions, scheduling and running at scale
- How to scrape data behind a login with Playwright - Log in once with a fixed seed, save storage_state, and reuse it every run.
- Resume an interrupted scrape with Playwright - Write a durable checkpoint, skip completed work, re-validate the boundary, reload the seeded identity.
- Incremental scraping: only new items since last run - A high-water mark that stops at the first already-seen id, handling out-of-order inserts and edits.
- How to use invisible_playwright in Docker - Install in Docker, fetch the patched Firefox at build time, and verify the fingerprint survives.
- Can you run invisible_playwright serverless? - Why the patched-Firefox download weight is the real blocker, and the container or worker pattern.
- Run invisible_playwright headful on a server with Xvfb - Run a real headful window on a headless Linux server with Xvfb, when headless already suffices.
- Run invisible_playwright in GitHub Actions CI - A headless CI recipe caching the engine, and why a datacenter runner IP is the limit.
- Run invisible_playwright in a Jupyter notebook - Why the sync API raises inside a kernel, and the await-in-a-cell fix for interactive sessions.
- Run invisible_playwright in Celery task workers - One browser per worker reused across tasks, the seed passed as a task argument for retries.
- Use invisible_playwright in an Airflow DAG - One browser per task run, the seed stored as a param for reproducible retries.
- Schedule invisible_playwright scrapes with cron - A scrape firing at the same clock minute daily is detectable; jitter the schedule and pacing.
- Wrap invisible_playwright in a FastAPI service - One browser kept alive by lifespan, a semaphore to bound concurrency, the cost of one server IP.
- How to scrape pages in parallel with Playwright - Run many workers with asyncio.gather, one identity per worker; a shared fingerprint is the tell.
- Run invisible_playwright concurrently with asyncio - Bound parallel pages with a Semaphore, give each worker its own seed; concurrency is a speed lever.
- Combine invisible_playwright with httpx for speed - Clear the fingerprint-gated entry, export storage_state, hand cookies to httpx for cheap follow-up.
- Use BeautifulSoup with invisible_playwright - The browser does the fingerprint-real fetch, BeautifulSoup parses page.content(); BS4 does not evade detection.
- Block images to speed up scraping (and when not to) - Blocking images with route.abort() cuts bandwidth, but a no-image waterfall is itself a tell.
- Run stealth Playwright tests with pytest fixtures - Wire pytest-asyncio fixtures: a session-scoped browser, a per-test seeded context, realness assertions.
Specific objects and data shapes
- How to handle A/B test variants when scraping with Playwright - read the assignment marker from a cookie, data attribute or global object, pin it with add_cookies or storage_state, and record variant a...
- How to scrape accordion and tab content with Playwright - tell panels already in the DOM from panels fetched on first expand, drive aria-expanded and aria-controls, and wait on a selector keyed t...
- How to scrape appointment availability with Playwright - key each slot to a provider, service type and location, capture the per-period calendar response, and read the grid without clicking a sl...
- How to scrape auction listings with Playwright - stamp every read in UTC, take the server end timestamp instead of the rendered countdown, and read bid history from its own paginated call.
- How to scrape book metadata with Playwright - read the Book and workExample nodes, normalise every ISBN to ISBN-13, keep one row per edition, and split contributor roles out of the by...
- How to scrape breadcrumb hierarchies with Playwright - read the trail from the markup instead of the truncated text, drop the self crumb, keep the category id from the href, and merge trails o...
- How to scrape fitness class schedules with Playwright - key each row by studio, instructor, room and start time instead of the occurrence id, fetch spots remaining and waitlist state from their...
- How to scrape clinical trial listings with Playwright - timestamp every status read, carry both trial identifiers, keep eligibility criteria as text, and split target enrollment from site-level...
- How to scrape conference agendas with Playwright - read the grid as tracks over time so a session keeps its column, resolve the event timezone once, and follow the session pages for speakers.
- How to scrape construction permit records with Playwright - drive the postback search, assert the result count the portal prints, and capture the status history rather than the current stage.
- How to scrape course catalogs with Playwright - the catalog is a four-level tree, the seat counts live behind a term parameter, and one row per section is the only shape that survives a...
- How to scrape court docket listings with Playwright - work from case numbers you can name rather than enumerating, keep the court's own sequence numbers, and pace it with a written daily cap.
- How to scrape CSS pseudo-element content with Playwright - text injected by ::before and ::after is not in the DOM, so read it from getComputedStyle and unwrap the quoted CSS value.
- How to scrape cursor-based pagination with Playwright - read endCursor and hasNextPage out of the JSON payload, pass the token back untouched, and checkpoint it with the last item id.
- How to scrape delivery slots with Playwright - a slot row is keyed to a postcode, a basket and a UTC moment, the grid arrives one week per request, and full is not the same as not offe...
- How to scrape domain WHOIS records with Playwright - Scrape WHOIS records with Playwright by parsing labeled fields instead of positions, treating REDACTED FOR PRIVACY as a real value, keepi...
- How to scrape currency exchange rates with Playwright - capture the quote response instead of the animating node, and store base, quote, side, amount and a UTC arrival time in every row.
- How to scrape museum and gallery exhibition dates with Playwright - read the run's start and end dates from the page's own Event node, key each run by exhibition plus venue, and track a last-checked timest...
- How to scrape GraphQL endpoints with Playwright - filter captured calls by the operationName in the POST body, replay persisted queries by hash, check the errors array on a 200, and page ...
- How to scrape infinite carousels with Playwright - mark the cloned wrap slides by their own attribute, pause autoplay through reduced motion, track the real slide index, and stop when an i...
- How to scrape insurance quotes with Playwright - fill the whole multi-step form fresh per profile, read only the final-step response, and capture every tier a tabbed result renders in on...
- How to scrape library catalog availability with Playwright - read holdings per copy and per branch instead of the record badge, stay inside the session the catalogue issued, and keep its status vocabulary.
- How to scrape live sports scores with Playwright - read match state alongside the score, timestamp every update against its own clock, and accept that a score can go down after a VAR review.
- How to scrape currency and locale switchers with Playwright - find which signal the site obeys by moving one at a time, record the final URL, and separate a display conversion from a real regional pr...
- How to scrape microdata and RDFa markup with Playwright - walk [itemscope] and [itemprop] with page.evaluate, apply the nine-case value rule instead of textContent, resolve itemref, and read RDFa...
- How to scrape multi-select facet filters with Playwright - expand show-more first, wait for the facet response before reading counts, store the state URL on every row, and sweep one group at a time.
- How to scrape newsletter archives with Playwright - page until the archive repeats or runs dry, read the hosted rendering instead of the sent email, and resolve tracking-redirect links once...
- How to scrape numbers rendered as images with Playwright - look in the accessible layer and the sprite offsets before reaching for pixels, and compare decoded pixels rather than PNG bytes.
- How to scrape nutrition labels with Playwright - map every column to its per 100 g, per serving or per package basis, split the serving size, keep kilojoules and kilocalories apart, and ...
- How to scrape open data portals with Playwright - name the catalogue product from its JSON response shape, page its documented listing API, and open a browser only where the search UI hid...
- How to scrape package download statistics with Playwright - take the series the chart draws from, keep the version breakdown, and carry the mirror and CI caveats next to the number.
- How to scrape package tracking status with Playwright - capture the event timeline rather than the headline status, merge revisions instead of appending, and widen the poll when nothing moves.
- How to scrape patent listings with Playwright - bind each date to its labeled field, keep family members and claim dependencies intact instead of flattening them, and stamp legal status...
- How to scrape podcast episode listings with Playwright - find the RSS feed behind the player, key episodes on the guid, and parse durations and episode numbers that arrive in several shapes.
- How to scrape podcast transcripts with Playwright - fetch the underlying VTT or SRT file instead of scrolling the panel, keep cue timing and text as rows, and detect speaker labels and auto...
- How to scrape printer-friendly pages with Playwright - find the print URL, emulate print media on the same DOM, diff one selector under both media types, and read the print stylesheet as the s...
- How to scrape professional directories with Playwright - key each row on the registration number plus the location, read credential badges out of their title attributes, sweep the overlapping le...
- How to scrape range slider filters with Playwright - read aria-valuenow instead of calling fill, prefer the URL parameter, wait for the debounced response, and sweep the field in half-open b...
- How to scrape recipe data with Playwright - read the JSON-LD Recipe node, flatten the three recipeInstructions shapes, split ingredient strings, and parse ISO 8601 times.
- How to scrape salary and pay scale data with Playwright - expand the hidden pay breakdown, keep the range and period intact, tag self-reported figures apart from wage statistics, and carry sample...
- How to scrape scholarship listings with Playwright - parse the deadline into a shape that admits it is often not a date, keep eligibility as prose, and follow through to the provider page.
- How to scrape school term calendars with Playwright - prefer the calendar feed the page links to, expand ranges with an inclusive end, and keep a closure distinct from a staff day.
- How to scrape flight seat maps with Playwright - Scrape flight seat maps with Playwright by reading each seat's own data attribute instead of its position, joining status and pricing fro...
- How to scrape server-sent events with Playwright - the response event fires but body() never returns, so replace window.EventSource in an init script, wrap fetch, and parse text/event-stre...
- How to scrape shipping rates with Playwright - a rate is keyed to destination, weight, dimensions and service level, the quote response carries surcharge lines the total hides, and fre...
- How to scrape size charts with Playwright - open the modal that holds the table, record which unit the toggle had active, detect row-versus-column orientation, and mark image-only c...
- How to scrape software changelogs and release notes with Playwright - detect the page shape, parse versions into sortable tuples, read the change type from the heading above each bullet, and stop at the vers...
- How to scrape sortable data tables with Playwright - read rows once keyed on an identifier, trust aria-sort over a click count, and sort the data yourself instead of the page's own string co...
- How to scrape spare part compatibility with Playwright - drive the cascading dropdowns waiting on each level to repopulate, key results on the whole path, and keep the fitment notes.
- How to scrape stock levels with Playwright - the badge is a bucket, the number lives in the variant endpoint, and a reading without a timestamp and a variant id is not a stock level.
- How to scrape store locator pages with Playwright - seed the search with a point grid instead of postcodes, read the radius endpoint rather than the cards, and dedupe on the store id becaus...
- How to scrape public tender notices with Playwright - one row per lot, deadlines kept with the offset the response carries, classification-code filters, and a re-scrape that reconciles revisi...
- How to scrape concert and tour dates with Playwright - key rows on the event URL so a postponement does not vanish, timestamp every status read, and treat a cancelled badge as its own state ra...
- How to scrape public transport timetables with Playwright - key every row by route, direction, stop and service day, pin the date, keep 24:15 times and request-stop flags, and store the trip id wit...
- How to scrape vehicle recall notices with Playwright - key each row to the campaign identifier and its VIN or build-date range, carry the notice revision so amendments update, and budget the V...
- How to scrape video game prices with Playwright - key rows on the edition or SKU instead of the title, record region, currency and read time with every price, and keep physical, digital a...
- How to scrape virtual scrolling tables with Playwright - measure the row pitch, step by less than one window, extract on sight because the nodes are recycled, dedupe on the row id, and stop on t...
- How to scrape warranty terms with Playwright - Scrape warranty terms with Playwright by keeping parts, labor, powertrain and battery durations as separate fields, pairing each with its...
- How to scrape weather station data with Playwright - Scrape weather station data with Playwright by capturing the observation feed instead of the rendered table, converting timestamps to UTC...
- How to scrape WebSocket streams with Playwright - subscribe with page.on('websocket'), classify each frame before parsing, apply the deltas to a snapshot, and stamp every row with a UTC r...
- How to scrape wine and spirits catalogs with Playwright - key rows by name, vintage and bottle size, pass the age gate once per context, and normalize critic scores before averaging them.
- How to Handle a PDF That Opens in a New Tab with Playwright - Catch the new page with
context.expect_page(), then pull the real bytes instead of screenshotting the viewer. - Does Playwright Support Firefox Extensions? - The documented extension API is Chromium-only; loading an .xpi into Firefox means a persistent profile, not a launch flag.
- Automating an Email OTP / Verification-Link Login with Playwright - Poll your own inbox over IMAP mid-login and feed the code back into the same session that requested it.
- Automating TOTP-Based 2FA Login with Playwright - Generate a time-based code with pyotp from the same shared secret an authenticator app would scan; no inbox, no polling.
- How to Scrape a Sandboxed Iframe with Playwright - A
sandboxattribute can block Playwright's own injected scripts even on a same-origin frame; what the tokens restrict and how to detect it first. - Puppeteer scraping examples, and what a real defense does to them - Six standard patterns as code, then run against an actual detector to show what changes and what does not.