Skip to content

edudevvv/csolver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csolver

A simple captcha solving service and official API wrapper for https://csolver.xyz

Version npm npm Downloads

NPM

Table of Contents

Installation

npm install csolver@latest
pnpm install csolver@latest
yarn add csolver@latest

Usage

const { CSolver } = require("csolver");

const csolver = new CSolver("Your Api-Key"); // Get your key in https://csolver.xyz/dash

async function main() {
    try { 
        const task = await csolver.createTask({ 
            task: "hCaptcha",
            payload: {
                siteKey: "hcaptcha key",
                siteUrl: "example.com",
                rqData: "", // optional 
                proxy: "user:pass@ip:port" // optional
            }
        });

        console.log(task); // { status: "", job_id: "" }

        const result = await csolver.getTaskResult(task.job_id);
        console.log(result); // solution your captcha.
    } catch (e) {
        console.log(e); // Identify possible errors.
    }
}

// Starting your code.
main();

  • Found any errors? Open a pull on the repository.

Author: Eduardo Silva (@pyvd)

Contributors: AG597 (@csolver.py)

Support: Discord

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published