Socket
Socket
Sign inDemoInstall

captchaguru

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    captchaguru

API wrapper for captcha.guru


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
4.13 kB
Created
Weekly downloads
 

Readme

Source

Captchaguru

JS wrapper for the site Captcha.guru, used to solve captchas.

install

npm i captchaguru

Getting started

const Guru = require("captchaguru");
const solver = new Guru("apiKey", "method", "siteKey", "siteURL");

async function solve() {
    console.log(await solver.solve());
}

solve();

Documentation

/**
 * Guru instance
 * @param {string} apiKey API key to captchaguru
 * @param {string} method Defines which service you're trying to solve (ex hcaptcha)
 * @param {string} siteKey Value of data-sitekey parameter you found on page, for example 93d2dffa-6cad-4031-9c00-4741a03c569d
 * @param {string} pageURL Full URL of the page where you see the hCaptcha, for example http://learn.captcha.guru/ln/hcaptcha/
 * @param {string} proxy Format: login:password@151.142.23.32:3128
 * @param {string} proxyType Type of your proxy: HTTP, HTTPS.
 */
const solver = new Guru("apiKey", "method", "siteKey", "siteURL", "proxy", "proxytype");

/**
 * May take up to 5 seconds (Captchaguru takes a while)
 * @throws On API error
 * @returns {string} Captcha token on successful resolve
 */
solver.solve();

/**
 * Amount to sleep before attempting to check if captchaguru is done with your captcha
 * Default value is 500 (ms)
 * @type {number}
 */
solver.sleepAmount = 500;

Keywords

FAQs

Last updated on 11 Feb 2023

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