New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

nocaptchasolver

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nocaptchasolver

Solve HCaptcha Challenges With The Power of NoCaptcha's AI Recognition!

Source
npmnpm
Version
2.1.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

🤖 NoCaptchaSolver

Solve HCaptcha Challenges With The Power Of NoCaptchaAI!

  • Faster Than Most Of The Captcha Solving APIs
  • Cheaper Than Most Of The Other APIs
  • Fully Maintained

Installation

npm install nocaptchasolver

Usage

Instantiating The Wrapper

const {HCaptchaSolver} = require("nocaptchasolver")

const Solver = new HCaptchaSolver(UID,API_KEY,USER_AGENT,SITE_KEY,SITE_URL,ENABLE_LOGGER,LOGGER_FUNCTION)

Solving Captcha

After Instantiating The Wrapper, You Can Start Solving Captchas By Calling The solve() Method

await Solver.solve() // { status:1,key:P0_eyadwa... }

Invisible Captcha

For Solving Invisible Captchas Like The Ones On Discord DMs, Pass In The rqdata Parameter

await Solver.solve(rqdata) // { status:1,key:P0.eadaea... }

Other Properties

You Can Check Your NoCaptcha Account Balance With The remainingSolves Property

console.log(Solver.remainingSolves)
// 81

You Can Also Check Your Account Limit With The solveLimit Property

console.log(Solver.solveLimit)
// 100

Logger

The Wrapper Has A Default Logger That You Can Enable By Passing The ENABLE_LOGGING Parameter As true Moreover You Can Also Use Your Own Logger Function By Passing That Function As LOGGER_FUNCTION Parameter

Following Code Examples Demonstrate Their Working

Default Logger

Code

const {HCaptchaSolver} = require("nocaptchasolver")

const solver = new HCaptchaSolver("ccbf7ee84db748a2b4aad654112da128","free-api-b0ec566e....","(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36","a9b5fb07-92ff-493f-86fe-352a2803b3df","discord.com",true)

async function main(){
    let token = await solver.solve()
}
main()

Output

Image

Custom Logger With Terminal Kit

Code

const {HCaptchaSolver} = require("nocaptchasolver")
const Terminal = require("terminal-kit").terminal

const logger = (type,message) => {
    Terminal(`[ ${type == "DONE" ? `^g${type + ` `.repeat("PROCESSING".length - type.length)}^` : `^r${type}^` } ] ${message}\n`)
}

const solver = new HCaptchaSolver("ccbf7ee84db748a2b4aad654112da128","free-api-b0ec566e....","(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36","a9b5fb07-92ff-493f-86fe-352a2803b3df","discord.com",true,logger)

async function main(){
    let token = await solver.solve()
}
main()

Output

Image

Examples

const {HCaptchaSolver} = require("nocaptchasolver")

const Solver = new HCaptchaSolver("ccbf7ee84db748a2b4aad654112da128","free-api-b0ec566e....","Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36","a9b5fb07-92ff-493f-86fe-352a2803b3df","discord.com")

async function main()
{ 
   if(Solver.remainingSolves === 0) return
   let solvedCaptcha = await Solver.solve()
   console.log(solvedCaptcha)
}

main() // { status:1,key:"F0_ey......" }

API

Register on https://nocaptchaai.com/register and join their server to get the API Key and UID

Keywords

Hcaptcha

FAQs

Package last updated on 19 Sep 2022

Related posts