csolver
v1.0.1-beta
Published
A simple captcha solving service.
Downloads
320
Maintainers
Readme
csolver
A simple captcha solving service and official API wrapper for https://csolver.xyz
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 issue on the repository.