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 |
@types/requestEnvironment{
"local_name": "@types/request",
"alias": false,
"peer_metadata": null
} | ^2.48.3 | development |
@types/request-promise-nativeEnvironment{
"local_name": "@types/request-promise-native",
"alias": false,
"peer_metadata": null
} | ^1.0.17 | development |
rimrafEnvironment{
"local_name": "rimraf",
"alias": false,
"peer_metadata": null
} | ^3.0.0 | development |
typescriptEnvironment{
"local_name": "typescript",
"alias": false,
"peer_metadata": null
} | ^3.6.4 | development |
xoEnvironment{
"local_name": "xo",
"alias": false,
"peer_metadata": null
} | ^0.25.3 | development |
Source distribution
{
"shasum": "6580457e729149a5d1860f3e1c1ee6ca54c318cb",
"integrity": "sha512-lHOBBtoeo9MKNGH7R6WjZUW80jlAwU5l9wmXhW353xjoqGyfbTPpoC0GL9KEOUsvdej+6wa26fOWC87vB4NISA==",
"tarball": "https://registry.npmjs.org/2captcha-node/-/2captcha-node-1.2.2.tgz",
"fileCount": 6,
"unpackedSize": 6924,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdwHPoCRA9TVsSAnZWagAA7B8P/2ii2OEp+s0XDMEfrkS/\nDndQ8F2MgyPqrN4XO78BMCgMZh8MN+DWAO/4l12LGyJr2Af5o0EgW604fa4L\nLDWRSb/+qTkWxRahTyicCSxqc8Orwa1CBVKhL85dBZ7sCtK4B6t6YZna/aNy\nopIhYm4kWI0+m3uMfOxixOYy/wZV0er/FSDgP+lFMyTuEWfs0hxyFljLGG2S\nIcRzuF/9RnhXfDshrsp64/rvqGFFlH3ctJ2/fFlMQmxKdtf7CBjnFpD/jA0S\nKCg8YWR8IZ+/t7GrKeLgRCp8REAz9z2gFByPZVimGsOGlu3K5P3qgV9y1wb6\nEQtxjXS9o09UNAp62gPY14MsNq7IPGugWPrrpEQZco067f0Vh9j1IqQZmVjg\nq+aSst7mZbS3ruzHZk89ngnYdu9ap77S7NYBrzs0zkh06MzOIKZIUci5fl0x\nO9I+LfEmGaiPPyCwwhE8V4ZL6MqdYqyETgPrCdEdmgfzkgo0hE6zrfNWMshB\n3R4XcxX/D8nl+QCaAT34jz1YB6Zsdmqmb7ckEcH8LSqiJ3Sjh2anLM3HDrd1\ngTl0Z7O0eEAae7+ON78gE+steWbgmgd2SQ+O5meFJM1pjg0hIGnK51bQhEY/\nV5IM7cjqxSpvFJulaIw8RPIzEYsD9UN6rJ1RNaLn/voSgaJtSeQpWloT9mhq\njcb5\r\n=LudP\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIDqhwJXpH8hIjeRmCuVuYKI3a2fo+fhUeqkw5KKQwNEUAiEAjzPlbxppSLCpvD3oQ9SFtehmoiEokhPQTw89czASm0Y="
}
]
}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:f91ebfb2d35be9a63472d5344ccbe646a8ddf78d93d34c4f9e51c2a18d0cf626