Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Hammad69275/NoCaptchaSolver
Solve HCaptcha Challenges With The Power Of NoCaptchaAI
https://github.com/Hammad69275/NoCaptchaSolver
Last synced: 5 days ago
JSON representation
Solve HCaptcha Challenges With The Power Of NoCaptchaAI
- Host: GitHub
- URL: https://github.com/Hammad69275/NoCaptchaSolver
- Owner: Hammad69275
- Created: 2022-09-18T12:19:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T13:30:05.000Z (over 1 year ago)
- Last Synced: 2024-04-24T08:30:01.505Z (7 months ago)
- Language: JavaScript
- Size: 42 KB
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
🤖 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 MaintainedInstallation
```npm install nocaptchasolver```
Usage
Instantiating The Wrapper
```js
const {HCaptchaSolver} = require("nocaptchasolver")const config = {
apiKey,
userAgent,
siteKey,
siteURL,
enableLogger,
loggerFunction,
delay // in milliseconds (default is 7000ms)
}const Solver = new HCaptchaSolver(config)
```
Solving Captcha
After Instantiating The Wrapper, You Can Start Solving Captchas By Calling The solve() Method
```js
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
```js
await Solver.solve(rqdata) // { status:1,key:P0.eadaea... }
```Other Properties
You Can Check Your NoCaptcha Account Balance With The remainingSolves Property
```js
console.log(Solver.remainingSolves)
// 81
```You Can Also Check Your Account Limit With The solveLimit Property
```js
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 ParameterFollowing Code Examples Demonstrate Their Working
Default Logger
Code
```js
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()
```Output
![Image](https://media.discordapp.net/attachments/1009809854157832286/1021407152461598730/image1.png?width=502&height=177)
Custom Logger With Terminal Kit
Code
```js
const {HCaptchaSolver} = require("nocaptchasolver")
const Terminal = require("terminal-kit").terminalconst 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()
```Output
![Image](https://media.discordapp.net/attachments/1009809854157832286/1021407152901996604/image2.png?width=556&height=169)
Examples
```js
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......" }
```API
Register on https://nocaptchaai.com/register and join their server to get the API Key