csolverr
v1.0.1
Published
A simple captcha solving service.
Downloads
153
Maintainers
Readme
csolver
A simple captcha solving service and official API wrapper for https://csolver.xyz
Table of Contents
Installation
npm install csolverr@latest
pnpm install csolverr@latest
yarn add csolverr@latest
Usage
const { CSolver } = require("csolverr");
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.