Socket
Socket
Sign inDemoInstall

captchaai

Package Overview
Dependencies
6
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    captchaai

- Promise based API methods - Browser & Node.js support - Powered by Node-Fetch ECMAScript Module. - Fluent typings & TS support - Proxy Support


Version published
Weekly downloads
7
increased by133.33%
Maintainers
1
Install size
8.88 MB
Created
Weekly downloads
 

Readme

Source

CaptchaAI

Discord Banner 2 Discord Banner 2

Discord Shield Size Downloads

A wrapper around the CaptchaAI API

Features

  • Promise based API methods
  • Browser & Node.js support
  • Powered by Node-Fetch ECMAScript Module.
  • Fluent typings & TS support
  • Proxy Support

Currently supports:

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

Planned Coverage

  • Funcaptcha
  • DatadomeSlider
  • AntiKasada
  • AntiAkamiBMP

Install

npm install captchaai
yarn add captchaai

Usage

Recaptcha,

const Captcha = require("captchaai")

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

/* Example ReCaptcha Website */
// solver.<recaptchaV2 | recaptchaV2Enterprise | recaptchaV3>
solver.recaptchaV2("6Ld2sf4SAAAAAKSgzs0Q13IZhY02Pyo31S2jgOB5", "https://patrickhlauke.github.io/recaptcha/")

.then((res) => {
    console.log(res)
})
.catch((err) => {
    console.error("Could not solve captcha.")
})

Image,

const Captcha = require("captchaai")
const fs = require("fs")

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

// Read from a file as base64 text
solver.imageCaptcha(fs.readFileSync("./captcha.png", "base64"))
.then((res) => {
    console.log(res)
})
.catch((err) => {
    console.error("Could not solve captcha..")
})

Proxy,

const Captcha = require("captchaai")

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


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

.then((res) => {
    console.log(res)
})
.catch((err) => {
    console.error("Could not solve captcha..")
})

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

Keywords

FAQs

Last updated on 07 Nov 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc