rages-captcha

1.0.2 • Public • Published

#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!
};

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i rages-captcha

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

3.13 kB

Total Files

3

Last publish

Collaborators

  • rage