captcha_oxide 0.1.1

Library for interacting with the 2Captcha API to solve captcha puzzles
Documentation

captcha_oxide

This is a rust library for solving captcha puzzles with the 2Captcha API

Usage

use captcha_oxide::solver::CaptchaSolver;
use captcha_oxide::captcha_arguments::RecaptchaV3;

#[tokio::main]
async fn main() {
  let solver = CaptchaSolver::new("YOUR TWOCAPTCHA API KEY");

  let args = RecaptchaV3 {
    page_url: String::from("https://someurl.com"),
    site_key: String::from("SITE_KEY"),
    ..Default.default()
  };

  match solver.solve(args).await {
    Ok(solution) => {
      let plaintext_solution = solution.solution;

      todo!("Use the solution");
    },
    Err(e) => {
      todo!("Handle your error");
    }
  };
}