Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@fuseble.inc/puppeteer

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuseble.inc/puppeteer

## Example - Starter

npmnpm
Version
0.1.1
Version published
Maintainers
2
Created
Source

Puppeteer Cluster

Example - Starter

import { PuppeteerCluster, wait } from '@fuseble.inc/puppeteer';

const cluster = await PuppeteerCluster.launch('clusterId', {
  concurrency: 'BROWSER',
  maxConcurrency: 2,
});

cluster.task('taskId', async (page, { browser, logger, clusterId, taskId, changeTask }) => {
  await page.goto('https://example.com');
  await page.screenshot({ path: 'example.png' });
  await wait(1000);
});

await cluster.init();
await cluster.close();

Browserless Setting

Docker Setting

docker run -p 3000:3000 \
-e "CONNECTION_TIMEOUT=-1" \
-e "WORKSPACE_DELETE_EXPIRED=true" \
-e "WORKSPACE_EXPIRE_DAYS=7" \
-e "EXIT_ON_HEALTH_FAILURE=true" \
-e "DEFAULT_BLOCK_ADS=true" \
-e "DEFAULT_LAUNCH_ARGS=[\"--window-size=1920,1080\", \"--mute-audio\"]" \
--restart always -d \
--name browserless-3000 browserless/chrome:1-chrome-stable

FAQs

Package last updated on 11 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts