@sesamestrong/puppeteer-recaptcha-solver
v1.0.0
Published
> ATTENTION: This is a fork of [danielgatis/puppeteer-recaptcha-solver](https://github.com/danielgatis/puppeteer-recaptcha-solver)
Downloads
4
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();
})();