PlaywrightBrowser
Supported browser engines for Playwright-based fetching.
Notes
Selects the engine PlaywrightFetcher launches: CHROMIUM (the default),
FIREFOX, or WEBKIT. These are Playwright's own
builds rather than the browsers installed on the machine, and Playwright
downloads them the first time they are used, into ~/.cache/ms-playwright.
Two ways to avoid that download: the official crawler-web-playwright Docker
image ships with Chromium already installed, and channel (for example
chrome or msedge) tells Playwright to drive a system-installed browser
instead of its bundled build. executablePath points at a specific binary.
Playwright itself is not part of the standard distributions — it is left out for its size — so this fetcher needs either that image or a build that includes it. WebDriverFetcher is the alternative engine, and it ships with every distribution.
Examples
- YAML
- JSON
- XML
fetchers:
- class: PlaywrightFetcher
browser: CHROMIUM
{
"fetchers": [
{
"class": "PlaywrightFetcher",
"browser": "CHROMIUM"
}
]
}
<fetchers>
<fetcher class="PlaywrightFetcher">
<browser>CHROMIUM</browser>
</fetcher>
</fetchers>
Usage
Full configuration skeleton, with every option and its default
- YAML
- JSON
- XML
PlaywrightBrowser: CHROMIUM
{
"PlaywrightBrowser": "CHROMIUM"
}
<playwrightBrowser/>
Allowed Values
CHROMIUMFIREFOXWEBKIT