Socket
Socket
Sign inDemoInstall

puppeteer-captcha-solver

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    puppeteer-captcha-solver

This library enables automatic resolution of common Captchas when using puppeteer.


Version published
Maintainers
1
Install size
1.07 MB
Created

Readme

Source

Puppeteer Captcha Solver

This library enables automatic resolution of common Captchas when using puppeteer.

This library works asynchronously. It stops automatically when the page is closed. It constantly checks if the page is active. Automatically solves supported Captchas without you having to take any action.

If Captchas recognize that you are a bot, please check this library. puppeteer-real-browser

Usage

npm i puppeteer-captcha-solver
const puppeteer_captcha_solver = require('puppeteer-captcha-solver')
const puppeteer = require('puppeteer-extra')
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
puppeteer.use(StealthPlugin())


puppeteer.launch({ headless: false }).then(async browser => {
    
    const pages = await browser.pages()
    const page = pages[0]

    await page.goto('https://nopecha.com/demo/cloudflare',{
        waitUntil: 'domcontentloaded'
    })

    puppeteer_captcha_solver.autoSolve({
        page: page,
        config: {
            turnstile: true
        }
    })

    // You can continue your operations here.

})

Keywords

FAQs

Last updated on 15 Jan 2024

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc