Skip to content

captchasio/captchas-io.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CAPTCHAs.IO API wrapper for Node.js

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

Installation

npm install captchas-io

Usage

Set up your api key:

var solver = require('captchas-io');

solver.setApiKey('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx');

Decode from a url, with a 10 seconds polling interval: (default = 2000ms)

solver.decodeUrl(url, {pollingInterval: 10000}, function(err, result, invalid) { console.log(result.text); });

Decode from a url retrying 5 times if invalid is called (default = 3)

solver.decodeUrl(url, {retries: 5}, function(err, result, invalid) { if(!checkIfCaptchaIsValid(result.text)){ return invalid(); } });

About

CAPTCHAs.IO API wrapper for Node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published