-
Notifications
You must be signed in to change notification settings - Fork 230
how to scrape newsletter archives playwright
To scrape newsletter archives with Playwright, page through the archive index until a page comes back empty or its first item repeats the item from the page before, since these archives almost never print a total to stop at, read each issue from the hosted rendering the archive actually serves rather than assuming it matches what a subscriber got by email, and treat the date shown on the archive as the date the issue was added to that archive, not the date it was sent, until you confirm the two agree.
A newsletter archive looks like a simple paginated blog and behaves like one only on the surface. The page you scrape is a hosted rendering built for public viewing, not the email that went out: tracking pixels are gone, click-tracked links are often rewritten to a tracking domain, and images sometimes point at a web-friendly copy instead of the original. The index has no total count in the markup, so the loop has to notice when it has run out rather than count down to a known number. Two smaller traps sit underneath: the publish date can be a backfill date, and an A/B tested subject line collapses to a single archived title, so the record you scrape is not always the record that was sent.
Before writing a parser, compare one archived issue against a copy of the same email in an inbox, if you have one. The differences are consistent across most newsletter platforms and they are not bugs in your extraction, they are what the hosted page actually is.
Tracking pixels, the invisible 1x1 images that record opens, are stripped from the public archive because there is no subscriber session to attribute an open to. Click-tracked links often survive into the archive, still pointed at a redirect domain, because rewriting every link at publish time is more work than leaving it in place. Images are the least consistent field: some platforms serve the exact asset the email used, others swap in a resized, web-hosted copy under a different filename, so matching images between the sent and archived versions by URL alone fails more often than it works.
from invisible_playwright import InvisiblePlaywright
with InvisiblePlaywright(seed=42) as browser:
page = browser.new_page()
page.goto("https://example.com/archive/issue-142", wait_until="networkidle")
record = {
"url": page.url,
"h1": page.locator("h1").first.inner_text(),
"published_raw": page.locator("[data-archive-date], time").first.inner_text(),
"body_html": page.locator("article, .campaign-body, .email-body").first.inner_html(),
"links": [
a.get_attribute("href")
for a in page.locator("article a, .campaign-body a, .email-body a").all()
],
}Grab the raw date string here and defer parsing it. The next section is why: what the markup calls a publish date is not always the date the newsletter was sent.
The archive index almost always uses a fixed page size and almost never prints how many pages exist. Some platforms respond to an out-of-range page number with an empty list; others silently redirect back to page one and serve the same first item again. Stopping on a hardcoded page count guesses wrong in both directions: too low on an archive that kept growing since you last checked, too high on one that trims old issues.
The reliable stop condition is behavioral, not numeric: keep the page's first item URL from the previous round, and stop the moment a page is empty or its first item matches what you already saw. This is the same shape as the numbered pagination problem in general, with one twist: here the "end" signal is a repeat, not just an empty result, because of the redirect-to-page-one behavior some archives fall back to.
def walk_archive_index(page, base_url):
seen_first_item = None
page_number = 1
issue_urls = []
while True:
page.goto(f"{base_url}?page={page_number}", wait_until="networkidle")
rows = page.locator(".archive-list-item a").all()
if not rows:
break
current_first = rows[0].get_attribute("href")
if current_first == seen_first_item:
break # the site looped us back to a page we already read
issue_urls.extend(row.get_attribute("href") for row in rows)
seen_first_item = current_first
page_number += 1
return issue_urlsRun this once with a print statement on page_number before trusting it against a real
archive. The platforms that redirect rather than empty out are common enough that
skipping the repeat check silently turns a 40-page archive into an infinite loop capped
only by memory.
This is the caveat that breaks a send-cadence analysis quietly, because nothing about it
looks wrong at extraction time. Some archives stamp every issue with the date it was
imported or backfilled into the archive system, which can be days or weeks after the
actual send when an older run of issues gets added in bulk. The field name in the markup
is rarely honest about this: it says "Published" or shows a <time> element regardless
of which date it actually holds.
There is no reliable way to recover the true send date from the archive page alone. The
honest move is to record what you can verify and mark the rest: keep the archive date as
archived_date, and only populate sent_date when a second, distinct timestamp exists,
an RSS pubDate for the same item or an email header from an inbox copy. Do not silently
treat archived_date as sent_date; a downstream cadence report built on that assumption
will show gaps and bursts that never happened.
A related gap sits in the title. Plenty of sending platforms let a publisher test two or three subject lines and send whichever wins to the bulk of the list. The archive keeps exactly one record per issue, so the subject line stored there is whichever variant the platform decided to archive, and it is not always the same string the H1 on the page shows. Treat this as a real limit of the source data rather than quietly picking the H1 or the meta title and moving on: the discrepancy is not something extraction can resolve, because the archive itself only kept one answer. Record both fields when they differ and flag the row, instead of merging them into a single "title" and losing the fact that a split existed.
from datetime import datetime
def build_dates(record, rss_pubdate=None):
archived_date = datetime.fromisoformat(record["published_raw"])
sent_date = rss_pubdate if rss_pubdate else None
return {
"archived_date": archived_date.isoformat(),
"sent_date": sent_date.isoformat() if sent_date else None,
"date_is_uncertain": sent_date is None,
}
def title_fields(page):
meta_subject = page.locator('meta[name="subject"]').get_attribute("content")
h1_title = page.locator("h1").first.inner_text()
return {
"meta_subject": meta_subject,
"h1_title": h1_title,
"titles_disagree": bool(meta_subject) and meta_subject.strip() != h1_title.strip(),
}Carrying date_is_uncertain and titles_disagree forward into the dataset is cheap, and
it is the difference between a limitation you documented and one a later analyst
discovers the hard way. A dataset with those flags set on a few dozen rows out of a few
hundred is telling you the truth about the source; one that silently picked a date and a
title is telling you a story.
Links inside the issue body are frequently wrapped in a tracking domain rather than
pointing straight at the real target, so https://track.example.com/c/abc123 has to be
followed before you know where it actually goes. Following every link on every read is
wasteful and it hammers a tracking service that was built to log a human clicking once,
not a script re-resolving the same handful of links on every re-scrape of an archive.
Resolve once per unique tracking URL, store the result, and read from the cache on every later run. The general technique of following a link without paying for a full page load is the same one covered in extracting links and building a crawl frontier; here the extra piece is the cache, since the whole point is to avoid repeating the resolution.
import json
from pathlib import Path
CACHE_PATH = Path("redirect_cache.json")
def load_cache():
if CACHE_PATH.exists():
return json.loads(CACHE_PATH.read_text())
return {}
def resolve_redirect(context, url, cache):
if url in cache:
return cache[url]
response = context.request.get(url, max_redirects=0)
target = response.headers.get("location", url)
cache[url] = target
CACHE_PATH.write_text(json.dumps(cache))
return targetmax_redirects=0 is the part that keeps this cheap: it stops at the first redirect
response instead of the request context silently following the whole chain, so one
request tells you the real target without a full navigation and without spending a page
load on a domain that only exists to log the click.
Most of these platforms publish an RSS or Atom feed alongside the archive, and the two
serve different jobs. The feed usually holds only the most recent handful of issues,
often twenty to fifty, but it returns in one request with clean, pre-parsed fields:
title, a pubDate that is genuinely the send date on most platforms, and a summary or
full body. The archive index, by contrast, holds everything ever published, but getting
it costs one page load per archive page plus one per issue.
Reach for the feed when the job is "what changed since I last checked", and reach for the
paginated archive when the job is "get the whole back catalog" or when an issue is old
enough to have fallen out of the feed's window. The mechanics of parsing the feed itself
are covered in scraping RSS and Atom feeds;
the piece worth calling out here is that the feed's pubDate is often the best available
substitute for the send date the archive page does not reliably give you, which is why the
combined script below reads it with feedparser before falling back to the archive date.
Re-running the scrape tomorrow should not re-download every issue from scratch, and it should not produce duplicate rows for issues you already have. The natural key is the issue's own archive URL, since it is stable across re-scrapes even when the visible title or the reported date shift underneath it. Store rows keyed on that URL and skip a fetch whenever the key is already present with a body hash that has not changed, which is the same shape used for incremental scraping of only new items in general.
import hashlib
def row_key(record):
return record["url"]
def body_hash(record):
return hashlib.sha256(record["body_html"].encode("utf-8")).hexdigest()
def merge_row(existing_rows, record):
key = row_key(record)
new_hash = body_hash(record)
old = existing_rows.get(key)
if old and old["body_hash"] == new_hash:
return existing_rows # unchanged, nothing to update
existing_rows[key] = {**record, "body_hash": new_hash}
return existing_rowsKeying on the URL rather than on the title or the date is what makes this survive a backfill: the date can move, the subject can be reported differently, but the archive URL for a given issue does not change once it is published.
The pieces compose into one run: walk the index for the URL list, pull the recent feed for a better date on newer issues, fetch each issue page, resolve its links through the cache, and merge the result into a keyed store instead of a flat list.
def run(base_url, feed_url, browser):
page = browser.new_page()
context = page.context
cache = load_cache()
issue_urls = walk_archive_index(page, base_url)
recent_dates = {}
try:
feed = feedparser.parse(feed_url)
recent_dates = {e.link: e.get("published") for e in feed.entries}
except Exception:
pass # the feed is a nice-to-have, not a requirement
rows = {}
for url in issue_urls:
page.goto(url, wait_until="networkidle")
record = {
"url": page.url,
"h1": page.locator("h1").first.inner_text(),
"published_raw": page.locator("[data-archive-date], time").first.inner_text(),
"body_html": page.locator("article, .campaign-body").first.inner_html(),
}
record.update(build_dates(record, recent_dates.get(url)))
record.update(title_fields(page))
record["resolved_links"] = [
resolve_redirect(context, href, cache)
for href in page.locator("article a, .campaign-body a").all_attribute_values("href")
if href
]
rows = merge_row(rows, record)
return rowsNothing here is a special wrapper method: new_page(), context.request and the locators
all come straight from Playwright's own API. The only additions are the repeat-based stop
condition, the redirect cache, and the fields that keep an honest record of what the
source could confirm.
A newsletter archive fails the same way in most implementations: no total page count, a hosted rendering that quietly diverges from the sent email, a date field that sometimes means "added here" instead of "sent then", and a title field that lost an A/B test result the moment it was archived. Page by behavior instead of by count, keep the archive URL as the row's stable key, resolve tracking-redirect links once and cache the answer, and record the uncertainty around dates and titles instead of papering over it. Reach for the feed when the job is the recent window and the archive when the job is the whole history. The parsing is the easy part; knowing what the source cannot promise you is what keeps the dataset honest on a second run.
How do I know when to stop paginating a newsletter archive? Stop when a page comes back empty or its first item matches the first item from a page already read. Some archives redirect an out-of-range page back to page one instead of returning nothing, so the repeat check is not optional.
Why does the archived issue not match the email a subscriber got? The archive is a hosted rendering built for public viewing. Tracking pixels are usually stripped, links are often left as tracking-domain redirects, and images are sometimes swapped for a separately hosted copy.
Is the date on the archive page the date the newsletter was sent? Not reliably. Some
platforms stamp the date an issue was added to the archive, which can differ from the
send date by days on a backfilled batch. Treat it as uncertain unless a second source, an
RSS pubDate or an inbox copy, confirms it.
Should I follow every tracking-redirect link every time I scrape? No. Resolve each unique URL once, cache the result, and read from the cache on later runs. Re-resolving the same links on every re-scrape wastes requests against a service built to log one human click.
What do I do when the subject line does not match the archived H1? Record both and flag the row instead of picking one. The mismatch usually comes from an A/B tested subject line collapsing to a single archived record, which is a real limit of the source, not something extraction can fix.
Should I use the RSS feed or the archive page? The feed for the recent window, since it returns fast with a real send date on most platforms. The archive page for full history or for any issue old enough to have fallen out of the feed's window.
- Playwright's
APIRequestContext.getwithmax_redirects, used above to resolve a tracking redirect without a full navigation. - Playwright's
LocatorandPage.goto, used as documented upstream for reading the archive index and each issue page. -
feedparser, the Python library used above to read the RSS or Atom feed alongside the archive, where one exists.
See also: scraping RSS and Atom feeds for the feed side of this page, extracting links and building a crawl frontier for resolving redirects in general, incremental scraping of only new items for the keyed-store pattern used above, and scraping paginated pages for the numbered-pagination case this archive's index resembles but does not quite match.
Written while maintaining invisible_playwright, a Firefox patched at the C++ level driven by stock Playwright. A backfilled batch of issues once got its archive date treated as the send date in a cadence report, and the report showed a two-week silent stretch that had never actually happened.
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