@muraenateam/puppeteer-cluster
v0.5.0
Published
Cluster management for puppeteer, forked for Necrobrowser
Downloads
23
Maintainers
Readme
Puppeteer Cluster for Necrobrowser
:warning: This is repo contains a modified version of Puppeteer Cluster for Necrobrowser needs: Be very careful here!
Create a cluster of puppeteer workers. This library spawns a pool of Chromium instances via [Puppeteer] and helps to keep track of jobs and errors. This is helpful if you want to crawl multiple pages or run tests in parallel. Puppeteer Cluster takes care of reusing Chromium and restarting the browser in case of errors.
Installation
Install puppeteer (if you don't already have it installed):
npm install --save puppeteer
Install puppeteer-cluster:
npm install --save @muraenateam/puppeteer-cluster
Hacking
If you edit the TypeScript source, you need to rebuild first and use a local version of this library.
puppeteer-cluster$ rm -rf ./node-modules && npm run-script clean puppeteer-cluster$ npm install tsc typescript jest puppeteer-cluster$ npm run-script build --target ES6 --force
@muraenateam/[email protected] build tsc "ES6"
At this stage you should have freshly generated javascript in dist.