Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puppeteer-extra

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-extra

Teach puppeteer new tricks through plugins.

  • 3.3.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
251K
increased by2.27%
Maintainers
1
Weekly downloads
 
Created

What is puppeteer-extra?

puppeteer-extra is a modular plugin framework for the popular headless browser automation library Puppeteer. It allows users to easily extend Puppeteer's functionality with plugins, making it more versatile and powerful for various web scraping, automation, and testing tasks.

What are puppeteer-extra's main functionalities?

Stealth Plugin

The Stealth Plugin helps to avoid detection by various anti-bot measures on websites. It modifies the browser's behavior to make it look more like a regular user.

const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
puppeteer.use(StealthPlugin());
(async () => {
  const browser = await puppeteer.launch({ headless: true });
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({ path: 'example.png' });
  await browser.close();
})();

Adblocker Plugin

The Adblocker Plugin blocks ads and trackers, making page loads faster and reducing the amount of data processed.

const puppeteer = require('puppeteer-extra');
const AdblockerPlugin = require('puppeteer-extra-plugin-adblocker');
puppeteer.use(AdblockerPlugin());
(async () => {
  const browser = await puppeteer.launch({ headless: true });
  const page = await browser.newPage();
  await page.goto('https://example.com');
  await page.screenshot({ path: 'example.png' });
  await browser.close();
})();

Recaptcha Plugin

The Recaptcha Plugin helps to solve reCAPTCHAs automatically using third-party services like 2Captcha, making it easier to automate interactions with websites that use CAPTCHA challenges.

const puppeteer = require('puppeteer-extra');
const RecaptchaPlugin = require('puppeteer-extra-plugin-recaptcha');
puppeteer.use(RecaptchaPlugin({ provider: { id: '2captcha', token: 'YOUR_2CAPTCHA_API_KEY' } }));
(async () => {
  const browser = await puppeteer.launch({ headless: true });
  const page = await browser.newPage();
  await page.goto('https://example.com');
  const { captchas } = await page.solveRecaptchas();
  await page.screenshot({ path: 'example.png' });
  await browser.close();
})();

Other packages similar to puppeteer-extra

Keywords

FAQs

Package last updated on 01 Mar 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc