9kw
This is an api wrapper for the 9kw captcha solver service. An Api Key is needed, generate using the 9kw website.
Installation
node:
$ npm install 9kw
$ yarn add 9kw
Only tested on node cli, but could also work in the browser with browserify. Please give feedback.
NOTE: All methods are asynchronous. Use the callbacks correctly.
Methods
const api_9kw = require('9kw')
const captcha = new api_9kw("API_KEY")
captcha.submitImage("./captcha.png", (err, newID) => {
if(err) {
console.log(err);
return
}
console.log("Captcha uploaded!: " + captchaID);
})
captcha.getSolutionLoop(captchaID, 40, (err, solution) => {
if(err) {
console.log(err);
return
}
console.log("Solution: " + solution);
})
captcha.isCorrect(captchaID, true)
captcha.serverCheck((err, serverInfo) => {
console.log(serverInfo)
});
captcha.getBalance((err, balance) => {
console.log(balance)
});
Changelog
- 0.1.4 (24/10/2016) - Refactored minor things
- 0.1.3 (24/10/2016) - Added isCorrect, serverCheck and getBalance methods
- 0.1.2 (24/10/2016) - Started tests
- 0.1.0 (17/10/2016) - First version with only submit and get captcha solution
License
MIT