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 |
|---|---|---|
isomorphic-unfetchEnvironment{
"local_name": "isomorphic-unfetch",
"alias": false,
"peer_metadata": null
} | ^3.0.0 | runtime |
@types/requestEnvironment{
"local_name": "@types/request",
"alias": false,
"peer_metadata": null
} | ^2.48.5 | development |
@types/request-promise-nativeEnvironment{
"local_name": "@types/request-promise-native",
"alias": false,
"peer_metadata": null
} | ^1.0.17 | development |
huskyEnvironment{
"local_name": "husky",
"alias": false,
"peer_metadata": null
} | ^4.2.5 | development |
tsdxEnvironment{
"local_name": "tsdx",
"alias": false,
"peer_metadata": null
} | ^0.13.2 | development |
tslibEnvironment{
"local_name": "tslib",
"alias": false,
"peer_metadata": null
} | ^2.0.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^3.9.7 | development |
Source distribution
{
"shasum": "7a668c626bede036aeb2d26f7dd55e6b2cb25d0a",
"integrity": "sha512-ycYOcMmTNQkd8TGCMnGfJ8chSXsL/5jnSnmhTcZanXvtntfkcntoVKkoOrI71cE6DQEICMV2qHRVsascEGwi2A==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-2.0.5.tgz",
"fileCount": 14,
"unpackedSize": 105363,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEXJdCRA9TVsSAnZWagAAMpQQAKQiyzwcc19PXEIVyqCz\nwICATwtlL2lZJFaKRpsc+ThPEIcYtNyw2EeMKTwalh1GlCat4xr+zai3TEYK\ny8G5M8nsl7QjNkQ6N01c93xCz0J1uiSs5L+6QEhzPq7B6m+qmmrcCKx/k6zf\nzfs8YlDXoyq3BUXwT+hdVnn1+VAAvvRBH3zSKeeKaZQge88m0xXMBT049D7/\nsmylZ/8EbBCtZZt3LzZftuU4jM1Lrn2ss0rgQ6OCUbE5Vk+CoCy61NH9SHB4\nnywObAzs0v6LVnsb2P13Qy+jV28WrWxO9raRoldwdogJspkJU9IQXR47c40Z\nQuvPDupIHrRe5x10iR8HGpqSXqHmARJ5eUu43N1ZlN50n1lrrPCSUAIitOf3\nZTofn5QMVgUqI56bbXhA50vTJ4xpLN+3bAYxjVzne0gE7O3Uz9lGz6K9Z02K\nYXONCUm4DJjGjhiiMPFUp/cK8VOSY/NFxJWIa1ilBPBVOTPTt3dNp83hk2Fx\ncQL8uC/l5EWSBNsi4UjEOIQkAIJQuwWft1kjp+rfxEx7mY930IEt2bUUJLHB\n1p3ErlzL8smTywgOYdB4zBKzNtJXqBut6ijIy8XjRA451mDTt2ZvwblUABiO\nl6OYJEyhge7nN9luONKSRF0CpkDt4nXKSaqNxa192XJReQtMwFkWRKu7bHU1\nkRuH\r\n=fAFW\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCTp7EdUDm70uhSNz1IZ+E+OBAh1Or3CezIbbnTrJC5CQIgaPOf1pcLdLZdHrzn/adsZHnYDjV+oZs8KBMW4lIN2zI="
}
]
}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:a9d1ad3bc6b9a19c2e07452b6825e4a37be856e8246f5a5b447ab33dbb830ee2