In this example, you can see how automate an MTcaptcha solution in JavaScript using Puppeteer and the 2captcha service. Puppeteer is Node.js library using for automation. 2captcha is service used to solve the captcha.
To interact with the 2captcha API, this demo uses the 2captcha-ts package.
The entire process of automating the MTCaptcha bypass is described as comments in the index.js file.
In the example, a page with a captcha MTcaptcha is opened, then the sitekey
value is searched on the page, then the captcha is sent to the 2captcha service for solution. When a solution is received, the resulting solution is applied on the page, and then a check occurs to see if the solution worked successfully.
If necessary, you can use a proxy server to solve MTcaptcha.
Set your 2captcha APIKEY
in index.js
file instead of "<Your 2captcha APIKEY>"
npm i
npm run start