Crate captcha_oxide

source ·
Expand description

A high level async library that allows you to use the 2captcha API to solve various types of captcha puzzles

Example

use url::Url;
use captcha_oxide::{
    captcha_types::recaptcha::RecaptchaV3,
    CaptchaTask,
    CaptchaSolver,
};

let solver = CaptchaSolver::new("YOUR_API_KEY");

let args = RecaptchaV3::builder()
    .website_url("https://some.url/")
    .website_key("SOME_SITE_KEY")
    .min_score(0.3)
    .build()?;

let solution = solver
    .solve(args)
    .await?
    .expect("Only `None` if pingback is set")
    .g_recaptcha_response;

assert!(!solution.is_empty());

Re-exports

Modules

Derive Macros