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

puppeteer-extra-plugin-capsolver

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-extra-plugin-capsolver

Manage to solve captcha challenges with AI in a puppeteer-extra app (captcha service based).

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

capsolver puppeteer-extra plugin

  • Manage to solve captcha challenges with AI in a puppeteer-extra app (captcha service based).
  • ❗ An API key it's required. Get here.

⬇️ Install

npm i puppeteer puppeteer-extra puppeteer-extra-plugin-capsolver

✋ Usage

❗ This plugin only helps retrieving solving tasks from api.capsolver.com based on capsolver-npm

  • Initialize SolverPlugin and use it within puppeteer-extra.
  • Then call await page.solver() to retrieve and use the solver at any moment.
const puppeteer = require("puppeteer-extra");
const SolverPlugin = require("puppeteer-extra-plugin-capsolver")("CAP-XXXXXX ...");
puppeteer.use(SolverPlugin);

puppeteer.launch().then(async (browser) => {
    try {
        let page = await browser.newPage();

        await page.goto("https://example.com/");

        let solution = await page.solver().hcaptchaproxyless({
            websiteURL: "https://example.com/",
            websiteKey: "00000000-0000-0000-0000-000000000000"
        });

        // use your solution (solution.gRecaptchaResponse in this case)
        // ...
    } catch (e) {
        console.log(e);
    } finally {
        await browser.close();
    }
});
  • Handle any api.capsolver.com supported task.

📁 Working examples

Figure out here.

Example

🔨 Methods

Disclaimer

  • This plugin is intended to provide automatic solutions to the implementation of captcha challenges within a DOM, by each use case.
  • There is no specific feature yet.

Keywords

FAQs

Package last updated on 28 Jul 2024

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