@jnv/deathbycaptcha
deathbycaptcha API wrapper for Node.js
Last updated 4 years ago by jnv .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jnv/deathbycaptcha 
SYNC missed versions from official npm registry.

deathbycaptcha API wrapper for Node.js

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

Installation

npm install deathbycaptcha4

Usage

Set up your credentials:

var deathbycaptcha = require('deathbycaptcha4');

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);
});

get service status:

deathbycaptcha.status(function(err, result) {
    console.log(result.todays_accuracy);
});

Current Tags

  • 1.3.3                                ...           latest (4 years ago)

2 Versions

  • 1.3.3                                ...           4 years ago
  • 1.3.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |