1.2.1 • Published 2 years ago

puppeteer-hcaptcha-solver v1.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Puppeteer-hcaptcha-solver

Solve Hcaptcha on any website using puppeteer

Author: Shahzain

PRS Are greatly appreciated.

Installation:

yarn add puppeteer-hcaptcha-solver

npm install puppeteer-hcaptcha-solver

Basic Usage:

Note: You need python to use this module.

const { PuppeterHcaptchaSolve } = require("puppeteer-hcaptcha-solver");
const puppeteer = require("puppeteer");
(async () => {
    const browser = await puppeteer.launch({ headless: false });
    const captcha = new PuppeterHcaptchaSolve(browser); // if you want to use ghost-cursor to make human-like mousemovements simply set `use_gc` to true, like this `new PuppeterHcaptchaSolve(browser, true)`
    try {
        const page = await browser.newPage()
        await page.setDefaultNavigationTimeout(0);

        await page.goto("https://accounts.hcaptcha.com/demo?sitekey=4c672d35-0701-42b2-88c3-78380b0db560", {
            waitUntil: 'load',
            timeout: 0

        });
        await page.waitForSelector("iframe")
        console.log("Hcaptcha detected")
        setTimeout(async () => {
            const token = await captcha.solve(page); // this function will return the hcaptcha_token string which u can use in other applications as well. 
            console.log(token)
        }, 2000)
    } catch (e) {
        throw e
    }
})()

Does this package support puppeteer-extra?

Yes! It does support puppeteer-extra.

Puppeteer-Hcaptcha-Solver in action

npm.io

Credits

QIN2DIM For his great AI work.

1.2.0

2 years ago

1.2.1

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago