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 rather than 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 rather than 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

Page mechanics: waiting, pagination and crawl flow

Forms, widgets and page controls

Extracting content and structured data

Files, images and media

Products, prices and shopping

Listings, travel and live data by vertical

Output, storage and data cleaning

Sessions, scheduling and running at scale


Table of contents


Back to top

MIT licensed. Every page here is written against the current source of the thing it describes, and several record something we got wrong first.

This site uses Just the Docs, a documentation theme for Jekyll.