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 |
|---|---|---|
core-jsEnvironment{
"local_name": "core-js",
"alias": false,
"peer_metadata": null
} | ^3.1.4 | runtime |
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.2.3 | development |
@babel/coreEnvironment{
"local_name": "@babel/core",
"alias": false,
"peer_metadata": null
} | ^7.3.4 | development |
@babel/preset-envEnvironment{
"local_name": "@babel/preset-env",
"alias": false,
"peer_metadata": null
} | ^7.3.4 | development |
eslintEnvironment{
"local_name": "eslint",
"alias": false,
"peer_metadata": null
} | ^5.15.0 | development |
eslint-config-standardEnvironment{
"local_name": "eslint-config-standard",
"alias": false,
"peer_metadata": null
} | ^12.0.0 | development |
eslint-plugin-importEnvironment{
"local_name": "eslint-plugin-import",
"alias": false,
"peer_metadata": null
} | ^2.14.0 | development |
eslint-plugin-nodeEnvironment{
"local_name": "eslint-plugin-node",
"alias": false,
"peer_metadata": null
} | ^8.0.1 | development |
eslint-plugin-promiseEnvironment{
"local_name": "eslint-plugin-promise",
"alias": false,
"peer_metadata": null
} | ^4.0.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
} | ^2.6.3 | development |
Source distribution
{
"shasum": "d8cf258d2c1e698dc81f7e2f819fe8c457ccca0c",
"integrity": "sha512-Hkx+r8fA/PcQj2HRMF4OJc2YkDVaCPtbIm3qZjjn6bi75FnT2FCo3L0z7fdGEmFOVwAt8IBTj0Nw1uNgxhWLbA==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.0.8.tgz",
"fileCount": 6,
"unpackedSize": 9043,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBQPWCRA9TVsSAnZWagAA7rQP/1D7JLHSj8y5BRW1ObTV\nvrHwswfJtebObCSNjoedfQJil2IA1XG60D6PW7l+wtS8WHyqN82B+bffJMg+\n3b7pT+cFGYLqChZmAiZFrks28qKOzyJa4v0YpcGkWvURDYGuml1cF9oDhERR\n1fgEyduhEA+oBybQklwnewcLxgjwpQiSbdgQAXdLwnwNUtHOPRL6q1mgqsGg\nyy2HXGhdUBIkcpgEpgNmponPpySyyXT+V/18FPArxNZ1mN7EWKE8Shb6yBH6\nGZ0uJA/CDYTrp6ZRfzMJv+Gqnd802GJgHsJf11l0zweXI1GSgKl0tKsD7YZk\n4lXh+OqsbRdBO9OViIkhr43IhD6lnlCHY1NJ1d5EBmMxxTJNJDkzE3wUvccz\nfiaasJK5rBreBkSRXb1IhM3kFhYhx8T9+ZxMU8+DdzD4cHbr0nEJlYDUb3Qs\n8usY6xjpkdfq9p/cBCokBSDUybkJjTu2jceYw/KYQuxvs0Me6aB+d7l0pPSi\nZPrpdx4j5sw9JyyBwj8GzE1gVUKbwQ8ulBZKKN4mWHuauk0cvKLFQRGal6/a\ncNVN26aYsSOI1OYw9dxo2rN7k9k4NAdFbKNAzA/UFInjBavxrs9rYwZaAV40\nk3kGqjUYtCJmRNPejvGiQyeqn0nQymmwe4pJ4hONhIWCRsnV9gDFnC8Og4jb\nP/8r\r\n=VXql\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIHPn+mbVcpfxoNSOBeQyZpd62aDnv5j3vDc8hPWAJz1FAiBA+cQ1xzRh5GTY+eFJkJLyH3s4lJXHpOAwnQ9/31eHhw=="
}
]
}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:359ff1b20eeb1f48707fb0853a6a26ba15a7851876e616ffeb162cb5fb245aa9