/playwright-recaptcha-solver

ReCaptcha V2 solver for Playwright

Primary LanguageTypeScript

Google ReCaptcha V2 Solver for Playwright

demo

If you like this project feel free to donate!

Donate with PayPal

Installation

yarn add https://github.com/xrip/puppeteer-recaptcha-solver.git

Example

    import { chromium } from 'playwright';
    import { solveCaptcha } from 'playwright-recaptcha-solver';

    (async () => {

        const browser = await chromium.launch({
            headless: false,
            args: [
                '--disable-site-isolation-trials',
                '--disable-features=site-per-process,SitePerProcess',
                '--disable-blink-features=AutomationControlled',
            ],

        });

        const ctx = await browser.newContext();
        const page = await ctx.newPage();

        await page.goto('https://www.google.com/recaptcha/api2/demo');

        await solveCaptcha(page);

        console.log('done');
    })();

Known issues

Sometimes you are blocked because of the reputation of the your IP. To avoid this, you can try to buy some residential proxies or run a simple version of the demo without a proxy.

Credits