Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

2captcha-new

<center> <h1> 2captcha </h1>

2captchaapicapmonstercaptchacaptchasolverfuncaptchahcaptcharecaptcha
Published8 Apr 2022
Direct dependencies5
Transitive dependenciesNot calculated

README

Current package documentation

2captcha

Discord Banner 2

Discord Shield Size Downloads

A wrapper around the 2captcha API

Info


Motive

2captcha is a service that solves many different types of captchas, this library serves as a wrapper around their API to bring easy, promise-based functionality to NodeJS. This libary specilizes in concurrent solves, and bulk-api usage.

Features

  • Promise based 2captcha solving
  • Browser & NodeJS Support
  • Uses node-fetch, a light weight http library
  • Fluent typings & TS support
  • Account Interaction
  • Invalid Captcha reporting
  • Proxy Support

Currently supports:

  • google-recaptcha (v2 / v3),
  • hcaptcha,
  • FunCaptcha,
  • base64 image captchas

Planned Features

  • Account Interaction
  • Base64 image support
  • Documentation Site
  • Built-in Rate-Limit handling
  • Proxy support
  • Invalid-Captcha reporting support
  • And many other things.

Install

npm install 2captcha
yarn add 2captcha

Usage

Recaptcha,

const Captcha = require("2captcha")

// A new 'solver' instance with our API key
const solver = new Captcha.Solver("<Your 2captcha api key>")

/* Example ReCaptcha Website */
solver.recaptcha("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/")

.then((res) => {
    console.log(res)
})

Image,

const Captcha = require("2captcha")
const fs = require("fs")

const solver = new Captcha.Solver("<Your 2captcha api key>")

// Read from a file as base64 text
solver.imageCaptcha(fs.readFileSync("./captcha.png", "base64"))
.then((res) => {
    // Logs the image text
    console.log(res)
})

Proxy,

const Captcha = require("2captcha")

const solver = new Captcha.Solver("<Your 2captcha api key>")


solver.recaptcha("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/", {
    proxy: "login:password@21.214.43.26", // The (Username : Password @ Address) of our chosen proxy
    proxytype: "HTTP" // The 'Type' of proxy, http, https, socks, ect.
})

.then((res) => {
    console.log(res)
})

Commit Guidelines

The latest version of the code base will always be under the 'next' branch!

  • All pull requiests must provide a valid reason for the change or implementation
  • All CORE CHANGES require an issue with reasoning made before a PR will even be addressed.
  • All PR's must follow the general structure of the code base
  • If you have questions, feel free to make an issue and i'll get to it right away!

Buy Me A Coffee

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 5

Native requirements
5 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
node-fetch
Environment
{
  "local_name": "node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.6.1runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
^17.0.16development
@types/node-fetch
Environment
{
  "local_name": "@types/node-fetch",
  "alias": false,
  "peer_metadata": null
}
^2.5.7development
jaguarjs-jsdoc
Environment
{
  "local_name": "jaguarjs-jsdoc",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
jsdoc
Environment
{
  "local_name": "jsdoc",
  "alias": false,
  "peer_metadata": null
}
^3.6.10development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-3YX8ptKoRomz4XSzC51unT4jrpK5rPFWPglJ7FbrApBwOVmmLim2enuxCQSNL/rxlB7PVQTL0PZp9HGfX2pvww==",
  "shasum": "da6015de34997c95d8559cb42df2518b55109992",
  "tarball": "https://registry.npmjs.org/2captcha-new/-/2captcha-new-1.0.0.tgz",
  "fileCount": 7,
  "unpackedSize": 11366,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQDe7oveFw4z1/iejiRwMNOIGHApg+vZ3g6LXGMXOhBFNgIhAOMe5ClL+N4uSW9YHbd1NsvZbH4Q4VbsHFqTglL1Qhf1"
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiT7TUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrutQ/+OrM8pzdlOLIZpEadFiTI2c1QitFSQr7nZ14h5khef7a0GEKZ\r\nlcuAnbbdg50dWJiCvFMMTHgRayCnKnk097OaGHQwOjXoSQJC7aenBZPF4OR7\r\nKBGqmp6FxasWywrtkMOPWqGXYo+nNASUm2cUNuWKUfpyitJS9xg4J5ArlD+S\r\nk+i060S6LsKTP/M3miY2pwgqyWkr7iIDWcUDIPcQYGeWS7n+HTL2jaoSL/tO\r\nkJyx1jK7Xqvc0QipK9gwsXT7eGIZ5UPj3F97zdqsKeSQ0ioxi53hES6dvWrW\r\nbwvmKlA9U/TlyQUa35Vxyv4YSTEao5HJX75a00UYbuYmy+z1jczq5juCguxW\r\n8XH0w/YUu1QYXwXcWlFg6lxg15dmKxUqVM1J8U97EhpWjCFtit84q097KlyC\r\n1NFXBqjvHKLi2dDn5DMv4eEr9yjNMGC8GTQo+qmxaoPkQGH7ArtmNz24bvzY\r\n37F7SATatIuNC5Q6fIZ+vQmyKv5yyQTcshhRkaNcgLT49EkrpzU1qdVe1ksN\r\n95+UAQu79bNcblntw/qhZs+lAqKe7Q15LCRZMZn9WBZdErEoBeA+sdBu9MRI\r\nG6a1tlSy7eZhBtmzU3l7IuanONAvlubKVfTKOfRmSaqacr16bFgxxm7g55nx\r\nUwPuD1hNATibQqloo0GT+ljvaOC7EjX5PLk=\r\n=SGFy\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
hoanhsota/2captcha-new

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:99dc1897e52c28debb2f55ab8f245f3cd519e250e177ec51fda190acb3afb6d5

Other collected versions

1.0.38 Apr1.0.18 AprView all collected versions →