two-captcha
v1.1.2
Published
2Captcha API wrapper for Node.js
Downloads
8
Maintainers
Readme
Two-Captcha Wrapper
2Captcha JavaScript Wrapper
Prerequisites:
You will need a 2Captcha API key
Installation:
npm i two-captcha
Usage:
Set up your api key:
const TwoCaptcha = require('two-captcha')
const Captcha = new TwoCaptcha('your-api-key')
Get the ID of your task:
let id = Captcha.getId('method', 'googleKey', 'pageUrl')
Start a cycle that checks if your task is completed and get result:
let solve = Captcha.solve(id)