rages-captcha
v1.0.2
Published
idk
Downloads
4
Readme
#How to use
Example:
let captcha = require('rages-captcha');
let capClient = new captcha(key, url, gKey, proxy, proxytype);
/*
key - 2captcha API key,
url - website url where captcha you are trying to solve is on,
gKey - found in the captcha element (data-sitekey attribute of captcha element),
proxy and proxytype are not used for now
*/
//send request to solve captcha - if the request succseeds it will call getToken after 20s with id it got from response
capClient.makeRequest();
//MAKE SURE YOU OVERWRITE `onResponse()` function and pass an argument for TOKEN!
capClient.onResponse = function(token){
//captcha solved got token!
};