{"_id":"9kw","_rev":"8-d5810d50e71a26ec2f5342117585e361","name":"9kw","description":"9kw api wrapper to solve captchas","dist-tags":{"latest":"0.1.4"},"versions":{"0.0.1":{"name":"9kw","version":"0.0.1","description":"9kw api wrapper to solve captchas","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","dependencies":{"superagent":"^2.3.0"},"gitHead":"7325ffbd48c166a5f1bad5811ab47f6a7c0c5624","_id":"9kw@0.0.1","_shasum":"7194fe57b173e6743e719ff009e7ff6cfa0d1f1e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"iamfreee","email":"carlosmflorencio@gmail.com"},"dist":{"shasum":"7194fe57b173e6743e719ff009e7ff6cfa0d1f1e","tarball":"https://registry.npmjs.org/9kw/-/9kw-0.0.1.tgz","integrity":"sha512-n22XaMvfmciTDMuXj9OicaQn7FAm7horZvYTxHpaeqtmvxqbCBaE8KXYKikuhE7xUYySDeXSmQ1MlVsCVj2Rgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD6ALyIyqUP78WPHIJeBfedLI5P10qiTmSqcGCfv2bT0wIhAPmTXRwLJB2WXGT9nuxQX0JpQo5XpK/F4cZgRbrdScif"}]},"maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/9kw-0.0.1.tgz_1476665024450_0.5751403593458235"}},"0.1.0":{"name":"9kw","version":"0.1.0","description":"9kw api wrapper to solve captchas","main":"src/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","dependencies":{"superagent":"^2.3.0"},"repository":{"type":"git","url":"git+https://github.com/iamfreee/9kw_node.git"},"gitHead":"ec9c88e9187cb84fd00a9e825ad964e83a628361","bugs":{"url":"https://github.com/iamfreee/9kw_node/issues"},"homepage":"https://github.com/iamfreee/9kw_node#readme","_id":"9kw@0.1.0","_shasum":"18fd7a5215176c27d14071dacd2b68183686582e","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"iamfreee","email":"carlosmflorencio@gmail.com"},"dist":{"shasum":"18fd7a5215176c27d14071dacd2b68183686582e","tarball":"https://registry.npmjs.org/9kw/-/9kw-0.1.0.tgz","integrity":"sha512-rd+7gRY2mFEKVRxP7fnMzEVWKz4MErApCQVX6tHbYWV0xn13xDTCxasctPHxS8fY14O/6Q8oS8Gbk/S4GA0vjg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHxKVo09SeEMHSLBA2Nn4cpr/EmVqSJiLQCwx1+3n2g1AiEA79pjjf5hteDIl8uC2+d1xoHW0qZECYDyjwldIeKFPNo="}]},"maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/9kw-0.1.0.tgz_1476665696783_0.16033212328329682"}},"0.1.1":{"name":"9kw","version":"0.1.1","description":"9kw api wrapper to solve captchas","main":"src/index.js","scripts":{"test":"mocha"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","dependencies":{"superagent":"^2.3.0"},"repository":{"type":"git","url":"git+https://github.com/iamfreee/9kw_node.git"},"devDependencies":{"mocha":"^3.1.2"},"gitHead":"8b104db5557a5f1335f0ab9ba834bde66a6be813","bugs":{"url":"https://github.com/iamfreee/9kw_node/issues"},"homepage":"https://github.com/iamfreee/9kw_node#readme","_id":"9kw@0.1.1","_shasum":"f8c9610f35d37fc54914b8510a4901efbe0b94f7","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"iamfreee","email":"carlosmflorencio@gmail.com"},"dist":{"shasum":"f8c9610f35d37fc54914b8510a4901efbe0b94f7","tarball":"https://registry.npmjs.org/9kw/-/9kw-0.1.1.tgz","integrity":"sha512-1G+meThMLMso99JrSV3YhkWFL/N9Uie3FCTUB1t0FCGy99Z36fQ42WwzqJvTu+nTnkMNYc1JpIT6UScKX6G0Xg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDmdNsp1au0wIdQK7B1hJcGsCb9Ib9ICsncJG/X4PLAAiBq3jiOE1Wkwa693DTSA6rwqtTK3IaeqYu7oa+2Xd0oDw=="}]},"maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/9kw-0.1.1.tgz_1477337257604_0.6851251812186092"}},"0.1.2":{"name":"9kw","version":"0.1.2","description":"9kw api wrapper to solve captchas","main":"src/index.js","scripts":{"test":"mocha"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","dependencies":{"superagent":"^2.3.0"},"repository":{"type":"git","url":"git+https://github.com/iamfreee/9kw_node.git"},"devDependencies":{"mocha":"^3.1.2"},"gitHead":"31f36a1f0a5e57774be1e669d693783bcb46a3ee","bugs":{"url":"https://github.com/iamfreee/9kw_node/issues"},"homepage":"https://github.com/iamfreee/9kw_node#readme","_id":"9kw@0.1.2","_shasum":"982892f934dab3aa7196de39270e50dee8660383","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"iamfreee","email":"carlosmflorencio@gmail.com"},"dist":{"shasum":"982892f934dab3aa7196de39270e50dee8660383","tarball":"https://registry.npmjs.org/9kw/-/9kw-0.1.2.tgz","integrity":"sha512-qYcVp4ruK6q0GVgI4g0WUeBtaCcmKZwoHkoF0xwFjDVsr9OjJzgffI3eyySIYMyL+hkYSTtMtVVnzyqdG7ECFA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8SUBjhYk03WVNN5dK8Ibc+OZZdGlnJCjeibAvDSfjNwIgMFPNPgzmFsiyHAeTs92Jt90PjFbsnBrrGRPoHmyni9U="}]},"maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/9kw-0.1.2.tgz_1477337910844_0.0571260170545429"}},"0.1.3":{"name":"9kw","version":"0.1.3","description":"9kw api wrapper to solve captchas","main":"src/index.js","scripts":{"test":"mocha"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","dependencies":{"superagent":"^2.3.0"},"repository":{"type":"git","url":"git+https://github.com/iamfreee/9kw_node.git"},"devDependencies":{"mocha":"^3.1.2"},"gitHead":"523adbccd27a3542e2ea829f85565b3098fe8291","bugs":{"url":"https://github.com/iamfreee/9kw_node/issues"},"homepage":"https://github.com/iamfreee/9kw_node#readme","_id":"9kw@0.1.3","_shasum":"37d0de46b29a38191aa1e7a7e54aaa25dcc0ef74","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"iamfreee","email":"carlosmflorencio@gmail.com"},"dist":{"shasum":"37d0de46b29a38191aa1e7a7e54aaa25dcc0ef74","tarball":"https://registry.npmjs.org/9kw/-/9kw-0.1.3.tgz","integrity":"sha512-jv8z0smHXIDpEEKR4fhU/oun+9VPetNVwwS3zg/t9MIsvaEG9nCUMHQKG3G+aJuZeqaLJM/bj+Wk5ViYkujwYw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaTU7nl/sn8Eju7J2bqXHrREidj7znx3t4ND5JnQApTgIgKuv3JnyJ+ZVAGEg9yS/6DBkzea4R4+b5Wvxeo5AHx/A="}]},"maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/9kw-0.1.3.tgz_1477343476918_0.38012755988165736"}},"0.1.4":{"name":"9kw","version":"0.1.4","description":"9kw api wrapper to solve captchas","main":"src/index.js","scripts":{"test":"mocha"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","dependencies":{"superagent":"^2.3.0"},"repository":{"type":"git","url":"git+https://github.com/iamfreee/9kw_node.git"},"devDependencies":{"mocha":"^3.1.2"},"gitHead":"90ba1e3037a31251442900ca2575fbb8af9abb8f","bugs":{"url":"https://github.com/iamfreee/9kw_node/issues"},"homepage":"https://github.com/iamfreee/9kw_node#readme","_id":"9kw@0.1.4","_shasum":"b1c8512146037f24073301da33b19d72ba3b615d","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"iamfreee","email":"carlosmflorencio@gmail.com"},"dist":{"shasum":"b1c8512146037f24073301da33b19d72ba3b615d","tarball":"https://registry.npmjs.org/9kw/-/9kw-0.1.4.tgz","integrity":"sha512-lWfNfcYYwMf3bcBuIk8ebocOUHrTVioyfTMW3H1smNyn9QqhjVEZYE3Hlqp6ZKZ2agxCv5nK0rhUusoLkIpnBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBugFZA9iyMPdy9necWSRUcgLsFmWtvXBIiPAOnBHMjtAiEAmtKuzKrEH/2sX7BTrCjsmTsUxgAJoVDyctcdg3x1QUU="}]},"maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/9kw-0.1.4.tgz_1477343803325_0.40229084552265704"}}},"readme":"# 9kw\r\nThis is an api wrapper for the 9kw captcha solver service. An Api Key is needed, generate using the 9kw website.\r\n\r\n## Installation\r\nnode:\r\n\r\n```\r\n$ npm install 9kw\r\n```\r\n\r\n```\r\n$ yarn add 9kw\r\n```\r\nOnly tested on node cli, but could also work in the browser with browserify. Please give feedback.\r\n\r\n**NOTE: All methods are asynchronous. Use the callbacks correctly.** \r\n\r\n## Methods\r\n\r\n```js\r\nconst api_9kw = require('9kw')\r\nconst captcha = new api_9kw(\"API_KEY\")\r\n\r\n// Submit the captcha, you can also submit using an url or base64 string\r\n// .submitUrl(url, cb) or .submitBase64(data, cb) methods\r\ncaptcha.submitImage(\"./captcha.png\", (err, newID) => {\r\n    if(err) {\r\n        console.log(err);\r\n        return\r\n    }\r\n\t\r\n    console.log(\"Captcha uploaded!: \" + captchaID);\r\n    // Next step is to get the solution of the uploaded captcha using \r\n    // the new captchaID\r\n})\r\n\r\n// Get the solution of the captcha with a timeout of 40 seconds\r\n// this means that the callback will be called when the captcha is solved\r\n// usually is solved under 30s\r\ncaptcha.getSolutionLoop(captchaID, 40, (err, solution) => {\r\n     if(err) {\r\n          console.log(err);\r\n          return\r\n      }\r\n\r\n      console.log(\"Solution: \" + solution);\r\n})\r\n\r\n// Tell 9kw the solution was correct or not\r\ncaptcha.isCorrect(captchaID, true)\r\n\r\n// Get the 9kw server check info\r\ncaptcha.serverCheck((err, serverInfo) => {\r\n\tconsole.log(serverInfo)\r\n});\r\n\r\n// Get your account balance (credits)\r\ncaptcha.getBalance((err, balance) => {\r\n\tconsole.log(balance)\r\n});\r\n```\r\n\r\n## Changelog\r\n- 0.1.4 (24/10/2016) - Refactored minor things\r\n- 0.1.3 (24/10/2016) - Added isCorrect, serverCheck and getBalance methods\r\n- 0.1.2 (24/10/2016) - Started tests\r\n- 0.1.0 (17/10/2016) - First version with only submit and get captcha solution\r\n\r\n## License\r\n\r\nMIT","maintainers":[{"name":"iamfreee","email":"carlosmflorencio@gmail.com"}],"time":{"modified":"2022-06-12T14:09:05.410Z","created":"2016-10-17T00:43:46.027Z","0.0.1":"2016-10-17T00:43:46.027Z","0.1.0":"2016-10-17T00:54:58.815Z","0.1.1":"2016-10-24T19:27:39.140Z","0.1.2":"2016-10-24T19:38:33.079Z","0.1.3":"2016-10-24T21:11:18.921Z","0.1.4":"2016-10-24T21:16:45.403Z"},"keywords":["9kw","captcha"],"author":{"name":"Carlos Florencio","email":"Carlos Florencio"},"license":"MIT","readmeFilename":"README.md","homepage":"https://github.com/iamfreee/9kw_node#readme","repository":{"type":"git","url":"git+https://github.com/iamfreee/9kw_node.git"},"bugs":{"url":"https://github.com/iamfreee/9kw_node/issues"}}