1.5.0 • Published 1 year ago
@zhaow-de/playwright-cluster v1.5.0
Playwright Cluster
Current version: v1.5.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.
Install
npm --save @zhaow-de/playwright-cluster
Usage
The documentation from puppeteer-cluster is still valid as the reference.
- Usage
- Examples
- Concurrency implementations
- Typings for input/output (via TypeScript Generics)
- Debugging
- API
Note
- Firefox is hardcoded as the headless browser. This library does not work with Chromium or Webkit.
- BrowserContextis not available in Puppeteer. Some options, e.g.- ignoreHTTPSErrorscannot be directly translated from- puppeteerOptionsto- playwrightOptions. Therefore, we introduced- contextOptionsas an optional property in- ClusterOptions.