Current version: v2.1.0
puppeteer-cluster is a great library manages a puppeteer cluster. This is re-implementation to make it work with Playwright, aiming at 100% API compatibility as a turn-key replacement.
npm --save @alloy-ch/playwright-cluster
The documentation from puppeteer-cluster is still valid as the reference.
- Usage
- Examples
- Concurrency implementations
- Typings for input/output (via TypeScript Generics)
- Debugging
- API
- Firefox is hardcoded as the headless browser. This library does not work with Chromium or Webkit.
BrowserContext
is not available in Puppeteer. Some options, e.g.ignoreHTTPSErrors
cannot be directly translated frompuppeteerOptions
toplaywrightOptions
. Therefore, we introducedcontextOptions
as an optional property inClusterOptions
.