CAPTCHAFORUM
Administrator
two-captcha is a node two captcha api wrapper.
Installation
Use the package manager npm to install @saarbrooklynkid/two-captcha.
npm i @saarbrooklynkid/two-captcha
Example
Code:
const twoCaptcha=require("@saarbrooklynkid/two-captcha");
const twoCaptchaClient = new twoCaptcha({apiKey:APIKEY}); // optional: returnError BOOLEAN, timeout INT, intervall INT
async function hCap(){
var captcha = await twoCaptchaClient.obtainHCaptcha({url:URL,sitekey:SITEKEY})
};
async function reCap(){
var captcha = await twoCaptchaClient.obtainReCaptcha({url:URL,sitekey:SITEKEY}) // optional: Version STRING, proxy STRING, invisible BOOLEAN
};
Documentation https://github.com/saarbrooklynkid/twocaptcha