@sesamestrong/puppeteer-recaptcha-solver

ATTENTION: This is a fork of danielgatis/puppeteer-recaptcha-solver

Usage no npm install needed!

<script type="module">
  import sesamestrongPuppeteerRecaptchaSolver from 'https://cdn.skypack.dev/@sesamestrong/puppeteer-recaptcha-solver';
</script>

README

ATTENTION: This is a fork of danielgatis/puppeteer-recaptcha-solver

@sesamestrong/puppeteer-recatpcha-solver

How to use

First, signup for a free account on Wit. Get an API key.

  $ npm install @sesamestrong/puppeteer-recaptcha-solver
const puppeteer=require("puppeteer-extra");
const stealth=require("puppeteer-extra-plugin-stealth");
const solver=require("@sesamestrong/puppeteer-recaptcha-solver");
require("dotenv")();
const solve = solver.solve(process.env.WIT_API_KEY);

puppeteer.use(stealth());

(async ()=>{
  const browser=await puppeteer.launch();
  const page=await browser.newPage();
  await page.goto("https://www.google.com/recaptcha/api2/demo");
  await solve(page);
  await page.screenshot({path:"example.png"});
  await browser.close();
})();