包详细信息

two-captcha

uigormarshall33MIT1.1.2

2Captcha API wrapper for Node.js

2captcha, captcha, wrapper, recaptcha

自述文件

Two-Captcha Wrapper

2Captcha JavaScript Wrapper

NPM version TRAVIS version

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)