captcha_oxide
This is a rust library for solving captcha puzzles with the 2Captcha API
Usage
use ;
use Url;
async
This is a rust library for solving captcha puzzles with the 2Captcha API
use captcha_oxide::{
CaptchaSolver,
catcha_types::recaptcha::RecaptchaV3,
Error,
CaptchaTask
};
use url::Url;
#[tokio::main]
async fn main() -> Result<(), Error> {
let solver = CaptchaSolver::new("YOUR TWOCAPTCHA API KEY");
let args = RecaptchaV3::builder()
.website_url("https://someurl.com")
.website_key("SITE_KEY")
.build()?;
let solution = solver
.solve(args)
.await?
.unwrap()
.g_recaptcha_response;
assert!(!solution.is_empty());
Ok(())
}