Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2captcha-node
A NodeJS wrapper to solve image captchas with 2captcha
A NodeJS wrapper to solve image captchas with 2captcha
You will need a 2Captcha API key
npm install 2captcha-node
or
yarn add 2captcha-node
Set up your api key:
import captchaSolver from '2captcha-node';
const captcha = captchaSolver('your-api-key');
It'll return an object with the solve function, and you'll be able to use it inside of your script
const options = {
image: 'base64-image',
maxAttempts: 60, // Optional
};
const { id, text } = await captcha.solve(options);
And this solvedCaptcha will return object, with captcha id and captcha text
You can use the balance function too, to see your balance at 2Captcha
const balance = await captcha.balance();
You can use the Report Captcha is valid or not.
await captcha.report(id, isValid);
👤 Pedro Filho pedro@filho.me
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
requestEnvironment{
"local_name": "request",
"alias": false,
"peer_metadata": null
} | ^2.88.0 | runtime |
request-promise-nativeEnvironment{
"local_name": "request-promise-native",
"alias": false,
"peer_metadata": null
} | ^1.0.7 | runtime |
@babel/cliEnvironment{
"local_name": "@babel/cli",
"alias": false,
"peer_metadata": null
} | ^7.5.5 | development |
@babel/coreEnvironment{
"local_name": "@babel/core",
"alias": false,
"peer_metadata": null
} | ^7.5.5 | development |
@babel/preset-envEnvironment{
"local_name": "@babel/preset-env",
"alias": false,
"peer_metadata": null
} | ^7.5.5 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^6.1.0 | development |
eslint-config-standardEnvironment{
"local_name": "eslint-config-standard",
"alias": false,
"peer_metadata": null
} | ^14.1.0 | development |
eslint-plugin-importEnvironment{
"local_name": "eslint-plugin-import",
"alias": false,
"peer_metadata": null
} | ^2.18.2 | development |
eslint-plugin-nodeEnvironment{
"local_name": "eslint-plugin-node",
"alias": false,
"peer_metadata": null
} | ^10.0.0 | development |
eslint-plugin-promiseEnvironment{
"local_name": "eslint-plugin-promise",
"alias": false,
"peer_metadata": null
} | ^4.2.1 | development |
eslint-plugin-standardEnvironment{
"local_name": "eslint-plugin-standard",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | development |
rimrafEnvironment{
"local_name": "rimraf",
"alias": false,
"peer_metadata": null
} | ^3.0.0 | development |
Source distribution
{
"shasum": "21e37cdf9a55b18464d8ca4cf0aa777211d71414",
"integrity": "sha512-upasOosUWTzO29GJrR5c8VesqNG+vfW8sHH73ZMJhpU3OD+OqVbfQ3ZklwIKFXYZL7n2hJ5ZcBrBfVW5fIEsyA==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.1.5.tgz",
"fileCount": 6,
"unpackedSize": 10091,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddovfCRA9TVsSAnZWagAAEEYP/RFJA6OCMissaKEq4zSi\noi3NDmGOHdL4jIT/s2Ae80MZ3M1KfXnLkW53FsVZCnCCtG6E8ig8Dw9x+nhY\nkSXCn6e11bEapdTHoCQFXTe05FlzrgomJKdyd8J5joc80yU4A/Dnu+awWO71\nU35jeo5HXGfMU/xVFCdAguCKfVRG/PWa5ddSNxz7dDCcaaMMNiWYiwMhhj5F\nqSoWLtlT9rMgJtr5Smw+A04qUSj+LWt+LNdqyFnIB6l6q/ebbiigAVlcsd+7\niwO2kwPHWgc8PaBr8mrTg/MMX8MfqqpjXi4T9msZ8ENfUW/jhfkynkn9ual6\nN08LVZNj1P6ROl+F2GfNzERtrkLuowes44aXlELHXtJskrQ7y7m8+a1kVqgg\nyyJbdQbOM3yPLzfcsD5oABClJp/TZhtdebzUs0PLGJmOohgY0Un5AuwfUROM\nET76dF1XSabjEXYjxkWCYEmWtTCzjDCkPlYc6NACeti4hPoA4SqnSgaKn0kH\nyaWDZOD8kDhFRmnQajDcIWXy/nAmkkXXbZvs5ZqsgrVv6vUULNIxnIAI6Uu7\n0rpm1Awo8GMR7ZCcjaml7xo9pIp/E046vmIAlp+yFCrMC71O1vSMMkvuMPuX\ncJL4VfHA6LaFz7VP1Y+OAPVOydtHKQ0s8D7rRezRfH3YII7k56VpuGYQNlYn\nREfE\r\n=sx8F\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCICQfZLHZKvlNSQ9/OZ/6/bnXPP0URzZlu6vM1z3ncfmmAiAoiYbDP9JrEW7iPOu66BwutzwSELr+PVrHGcFJm/dUXg=="
}
]
}Shared repository data · GitHub
Observed since 20 Oct, 19:09 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:4da1ad2ec1fdb7779f9d1f32ceaa8dc18c827c64f8bea5d18a4e72636350321d