Google ReCaptcha V2 Solver for Playwright
yarn add https://github.com/xrip/puppeteer-recaptcha-solver.git
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');
})();
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.
- Based on puppeteer-recaptcha-solver by danielgatis