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
} | ^13.0.1 | 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
} | ^9.1.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": "266b300ccc8066511a7e0606c649ebc295529b9e",
"integrity": "sha512-fh1Ax3xYS2eJCHjmEY9pLFpZAqsXe1v00CxK53KcbPMLT0W6Lg9nkG0DrfUUIV88YolWw5zlvYaDz4eviEGuEw==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.1.4.tgz",
"fileCount": 6,
"unpackedSize": 10090,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJddoozCRA9TVsSAnZWagAAg28P/3X6YwyOu5HVDQhnNpCH\np3Ko01imM7VCoqxnFcbXdGOJlEmep0KOmOcDqZtsHQyj+SrKZNQKxtQun4y3\nrZAa3WZzOrS9KzFPcKIPsT2uayc75qdureVyxJd9tP/DINOgD/FTJteZd1Gu\nt3dloheXjmFlQFvMWgOXvP8/9W9D3nVBZVcWQSrPdjeHbNlhwkMvotNfqnjf\nI60YxQvHuunQZFE5kdVV40MBRO45pYg6e0EuIR4DqxpvQ2JDpTwOEGyxn1Ln\nqhOd6R+v8EdwkE4mRO9H5Is/kBSxThW75Tqcm+95SxrYtrj56Y0YU/QmN6gu\nPcLD1A3aBPg8EuoMEk0nnyYDk25irUDtw+g10KB/S31CU1+tvOfDlb685+Fy\nOoKhsFHsl2rcPe+FujwJwNVP4RjIoWJyeuzKep5H2IhDsAyz7JjFHaQ2ZKkr\nuw0hS8po3pIvs0cWqm6m3U3Y7kYqieBbuIKg/XhCjz1OxuYAHI4Jonrc32J7\n6jLC+KpOxO3mZ0DCfLywQEpkeBaFpGI/H0g7vuY4aPufVQWaLW+l4oapqWfu\nTjST/6VKmJkvQBWLIwaMlpup6FU3pcRiK+PSZMqf4TchiX1etDyrp+LJtGYh\nbTJZ3wUgrx8I5RidxcDJKRBiPd3h+wn2+RAAMZ2PG4YlKPK78tGQnjwU33Nl\nd+T/\r\n=Jn9w\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCMK4PDcujS/iYVuv5+1D6uaV1+wxo3BKewCbtRwPJnPgIgBNPNhe1RgdQWGNg+tmEVbf2akoWIWUPBrkd2IxCLb74="
}
]
}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:c31a37d8635ceff3a59538743a990635e6035a74d2fa161af6516d8e4fe69973