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.4.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": "a60268316d1dd954cb644058199798791539ff85",
"integrity": "sha512-wm+FpwLueTN+javXxNB4mlnOCkxtUN9Q8DrfZo6kmVafbA7msLBtJ/x4IxJTAAxtGlFArgdvSSNt+5iVi12Mow==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.1.6.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\nwsFcBAEBCAAQBQJdgBMmCRA9TVsSAnZWagAAoV0P/jpVLVx6Y8zNgc2vpFOb\ndCxZUtXlKnnmWaHaKwdcPNoheFnWCOyV8oDh8OywkfCC9LMocugrEmy9Nd2B\nK3sqmbWGmdkr8DB++k9WJ2ufra1OxtcEYUs2rmgiL7FvrRrvVgdYNSXGIa2W\nP4wZEHm9n9eHkpnw51PQ6h7YsatOMAde5FoGipY0MN0X3QEJNZHq0fc3bX+y\nJyLSqCYwB2SQFjpCG9NCJws0qMQ22oVH0G+RCgPuMrEC2zIK1radiKtoQ8AR\n1eTMWyFjY4YuyxGbkIlp+0MgulsYE7eQhV9LRCwNn5lLFaaKcU6ljiR/SbjM\nVPjOBvHWzZ+ADYme9fH0gTY8xc7OFQ1cHhsIeRpH8xjzFO2lFDkXOvaDJnBy\nLYdC8cqPKP8lVkcS+Tcmva51IvnPkYNynDdL01LxlKztH3nPsB+llRAfdkGf\nK3E4/83zi6sQTyMWKnL3GITZKbC4cYvHGUniSO0ZNC3e1OIEVU9beMqd9tgC\nwIzt+wtFA4N/dYPrI2HRl/yoQMIiFb/3rxZ960Sw44R8fk0djWrv19KIJZF5\nP3eMyD8K0GDja1/cJYnDy4hgxBfsQWnrfskhP8gH1nIrmhH3rtKQ7tdJxIt/\nwDYJ4U0tjFafOBpebgOVjZOiL2LsxVu/1IbCLBtp0r72HYrJoGzRc3UZXOzs\nyB9v\r\n=oP6n\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIEsEZHOunXgAF2P2O8lL2FKEG1aNlSoyrimEdEix84QxAiEAjh/Nso0cluzMuSd5qF+rGW69PS3wFByMdWdh1lZRiBM="
}
]
}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:f668face9f47137caae3e5fe29aa8bb1d782cd4a0af0c27ff141bab2155bcdcf