nocaptchasolver
v3.0.0
Published
Solve HCaptcha Challenges With The Power of NoCaptcha's AI Recognition!
Downloads
27
Maintainers
Readme
- Faster Than Most Of The Captcha Solving APIs
- Cheaper Than Most Of The Other APIs
- Fully Maintained
npm install nocaptchasolver
const {HCaptchaSolver} = require("nocaptchasolver")
const config = {
apiKey,
userAgent,
siteKey,
siteURL,
enableLogger,
loggerFunction,
delay // in milliseconds (default is 7000ms)
}
const Solver = new HCaptchaSolver(config)
await Solver.solve() // { status:1,key:P0_eyadwa... }
await Solver.solve(rqdata) // { status:1,key:P0.eadaea... }
console.log(Solver.remainingSolves)
// 81
console.log(Solver.solveLimit)
// 100
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
const {HCaptchaSolver} = require("nocaptchasolver")
const config = {
apiKey:"free-api-b0ec566e....",
userAgent:"(Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36",
siteKey:"a9b5fb07-92ff-493f-86fe-352a2803b3df",
siteURL:"discord.com",
enableLogger:true,
delay:2000
}
const solver = new HCaptchaSolver(config)
async function main(){
let token = await solver.solve()
}
main()
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 config = {
...config,
loggerFunction:logger
}
const solver = new HCaptchaSolver(config)
async function main(){
let token = await solver.solve()
}
main()
const {HCaptchaSolver} = require("nocaptchasolver")
const Solver = new HCaptchaSolver(config)
async function main()
{
if(Solver.remainingSolves === 0) return
let solvedCaptcha = await Solver.solve()
console.log(solvedCaptcha)
}
main() // { status:1,key:"F0_ey......" }
Register on https://nocaptchaai.com/register and join their server to get the API Key