8 releases (5 stable)

1.2.2 Mar 17, 2024
1.1.1 Mar 11, 2024
0.1.2 Mar 10, 2024

#628 in Images

Download history 21/week @ 2024-07-31 1/week @ 2024-09-18 1/week @ 2024-09-25 3/week @ 2024-10-02

365 downloads per month

Custom license

21KB
362 lines

Crates.io Documentation

rustycap

The official CapBypass wrapper for Rust.

Features

Name Description
image Enables the use of an image to base64 encoding library for classification tasks

Examples

Initialization of Solver

use rustycap::Solver;

let solver = Solver::new("CAPBYPASS_KEY");

Retrieve Balance

let balance = solver.get_balance().await.expect("Unable to retrieve balance");
let credits = balance.credits;

Creating a task and waiting for it

let data = json!({
    "blob": "test",
});
let task = FunCaptchaTask::new(
        "https://example.com/",
        "PUBLIC_KEY",
        "host:port:user:pass"
    ).data(&data).subdomain("roblox-api.arkoselabs.com");
let solution = solver.create_and_wait(task).await?;

println!("Received token: {}", solution);

TaskInfo enum

Field Description
TaskInfo::Processing The task is being processed
TaskInfo::DoesNotExist The task was unable to be found
TaskInfo::Failed(String) The task failed and the String contains the error description
TaskInfo::Done(String) The task was successful. The String is the solution.

Dependencies

~6–18MB
~246K SLoC