This demo project shows how to use the 2captcha-solver extension with Puppeteer to solve captchas at https://2captcha.com/demo/recaptcha-v2. The example uses Puppeteer, puppeteer-extra and puppeteer-extra-plugin-stealth. puppeteer-extra is a lightweight wrapper around Puppeteer and puppeteer-extra-plugin-stealth is an add-on to puppeteer-extra designed to hide the traces of automation.
A detailed described of how this example works is described in our article How to use the 2Captcha solver extension in Puppeteer for bypass reCAPTCHA, hCaptcha and others captchas.
Download the latest extension release and extract it to 2captcha-solver
folder
npm i
Write your api key in the file './2captcha-solver/common/config.js '
. You can view your API key on the page https://2captcha.com/setting.
Example:
apiKey: "7894561d1234ddd00b7894561dd0d00d"
npm run start