playwright-recaptcha-solver
playwright-recaptcha-solver copied to clipboard
ReCaptcha V2 solver for Playwright
Google ReCaptcha V2 Solver for Playwright

If you like this project feel free to donate!
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
- Based on puppeteer-recaptcha-solver by danielgatis
