Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.45 KB

README.md

File metadata and controls

50 lines (34 loc) · 1.45 KB

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