0.5.0 • Published 2 years ago
@randy.tarampi/playwright-cluster v0.5.0
Playwright Cluster
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 @randy.tarampi/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
- Chromium is hardcoded as the headless browser. This library does not work with Firefox or Webkit.
BrowserContextis not available in Puppeteer. Some options, e.g.ignoreHTTPSErrorscannot be directly translated frompuppeteerOptionstoplaywrightOptions. Therefore, we introducedcontextOptionsas an optional property inClusterOptions.