1.1.2 • Published 5 years ago

two-captcha v1.1.2

Weekly downloads
12
License
MIT
Repository
github
Last release
5 years ago

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)