Skip to content

f1ames/node-deatchbycaptcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

deathbycaptcha API wrapper for Node.js

Post a captcha to the deathbycaptcha service, then polls until the captcha is decoded.

Installation

npm install deathbycaptcha3

Usage :

Set up your credentials :

var deathbycaptcha = require('deathbycaptcha3');

deathbycaptcha.credentials({
    username: 'yourusername',
    password: 'xxxxxxxx'
});

Decode from a url, with a 10 seconds polling interval :

deathbycaptcha.decodeUrl(url, 10000, function(err, result) {
    console.log(result.text);
});

or decode from a file :

deathbycaptcha.decodeFile('modern-captcha.jpg', 10000, function(err, result) {
    console.log(result.text, result.id);
});

report invalid captcha :

deathbycaptcha.report(captchaId, function(err, result) {
    console.log(err);
});  

get your credit balance :

deathbycaptcha.credit(function(err, result) {
    console.log(result.balance);
});

About

deathbycaptcha API wrapper for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%