Skip to content

xrip/playwright-recaptcha-solver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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