1.6.0 • Published 1 year ago
24captcha v1.6.0
24captcha
A module to solve captchas using 24captcha.online
Usage
const CaptchaSolver = require('24captcha');
async function main() {
const captcha = {
captcha_sitekey: 'your_site_key',
captcha_rqdata: 'your_request_data', // Optional
pageurl: 'https://discord.com/',
};
const config = {
apiKey: 'your_api_key',
proxy: 'your_proxy', // username:password@hostname:port
proxyType: 'HTTP',
};
const solver = new CaptchaSolver(config);
try {
let captchaKey = await solver.solveCaptcha(captcha);
console.log('Captcha solved successfully (json = 1, enterprise = true):', captchaKey);
captchaKey = await solver.solveCaptcha(captcha, { json: 0, enterprise: false });
console.log('Captcha solved successfully (json = 0, enterprise = false):', captchaKey);
} catch (error) {
console.error('Error solving captcha:', error);
}
}
main();
Contact
Discord
Elminsterxld
Telegram
t.me/Elminsterxld