Skip to content

An example of usage of 2captcha-solver extension with puppeteer

Notifications You must be signed in to change notification settings

2captcha/2captcha-solver-in-puppeteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

English | Русский

Usage of 2captcha-solver extension in puppeteer

Description

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 extension

Download the latest extension release and extract it to 2captcha-solver folder

Install the dependencies

npm i

Setting

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"

Usage

npm run start