@muraenateam/puppeteer-cluster
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

Puppeteer Cluster for Necrobrowser

Build Status npm

⚠️ 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/puppeteer-cluster@0.2.1 build tsc "ES6"

At this stage you should have freshly generated javascript in dist.

License

MIT license.

/@muraenateam/puppeteer-cluster/

    Package Sidebar

    Install

    npm i @muraenateam/puppeteer-cluster

    Weekly Downloads

    12

    Version

    0.5.0

    License

    MIT

    Unpacked Size

    112 kB

    Total Files

    37

    Last publish

    Collaborators

    • ohpe