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.6.2 | development |
@babel/coreEnvironment{
"local_name": "@babel/core",
"alias": false,
"peer_metadata": null
} | ^7.6.2 | development |
@babel/preset-envEnvironment{
"local_name": "@babel/preset-env",
"alias": false,
"peer_metadata": null
} | ^7.6.2 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^6.5.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": "0f4cdf6202307eddbeb0008dda9d3c2f01c4e6f6",
"integrity": "sha512-lKySmsFsG+i6xCEIcuyvoJLZ/hOruGL6r12PTEefE3qMp1qeRbpDVgVS+mhMweMq+2EELcCynK+JOjwVpU/Z9Q==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.1.7.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\nwsFcBAEBCAAQBQJdkntgCRA9TVsSAnZWagAArQUQAKCVw1k6/u0NqijGBhrJ\nP3G4iFcQFsqsF1gDB42jFJm5OYK15l5vtGCG66JXn1uUKNlXc7MUxSpy6b25\nxFjE7ilBviWBjn349RuwMarjo+yCNWzfp+PxILpEFAtHD6j/wF5meVRMDYmD\nbcovZcs1Haxq1nusY3wrjqXLXSXY5JlJI2p/BaaDue2L4ehTAoXfhczadm16\nZsF0lj2lq4XX9F53CsnCyiGRFI53jcquyIanmUmFSTqhNxbk1uoErFTP39gv\nZPzf49Usi7lJoZgKxz02R2FF+UGc/gzX9QGJvxP6DTKJoDwaDIa5PeLpoan/\n+EqCzARAes60K+Vk/8JkdMfBRpv/yYuBrNgoFWm9lTqTzt+ZimQyODmbVJ7e\nKHrGG5pfA9fGE+w2O/Ncj6AkOhYJ7+wzoRc62+GLEIWOP7W/Ldr0SxfhbTUc\nnaapLQXrDGwCiBR02pb7EMnsEgnTIaIUA0vJeQzOIYALk50wSYbbCjZ8uf6+\n+oWrG7cMXBD40qJ2TCvF1R+jU8TnhzgL1UL4k6aASjj1Jouk5D7Wfs7hP1FA\nfUVeroy1vcEJjYUatpf+cMR/NNkUgp1419gDa0Q7lF3tr5DHQV1uA95PvBzC\nctg6lR6MxgxgWo14tet/tqdXDshU8LGYlRDmUrXJhx93cSk1HhzsG/2TeMFf\nE8ms\r\n=tXRJ\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQCjsEpCdOvzOXqOFwkOdG/cv+x4vpAaesrWf29JhHBaGQIgNuxPZVxYYjcMN9ZtEr5wupSKN18INFQcBPmg1eOwByU="
}
]
}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:b01727bb4aaa734fa75432ca030d1268b48ed1c9d7ec1872fb11d73a0d70d0c5