https://github.com/escritorio-gustavo/captcha_oxide
A Rust library for handling captcha puzzles through the 2captcha API
https://github.com/escritorio-gustavo/captcha_oxide
2captcha 2captcha-api captcha captcha-solver capy-puzzle geetest-captcha hcaptcha recaptcha recaptcha-v2 recaptcha-v3 rust rust-library
Last synced: 12 months ago
JSON representation
A Rust library for handling captcha puzzles through the 2captcha API
- Host: GitHub
- URL: https://github.com/escritorio-gustavo/captcha_oxide
- Owner: escritorio-gustavo
- License: mit
- Created: 2023-07-18T20:12:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-07T15:33:07.000Z (almost 2 years ago)
- Last Synced: 2025-04-04T11:51:09.519Z (about 1 year ago)
- Topics: 2captcha, 2captcha-api, captcha, captcha-solver, capy-puzzle, geetest-captcha, hcaptcha, recaptcha, recaptcha-v2, recaptcha-v3, rust, rust-library
- Language: Rust
- Homepage: https://crates.io/crates/captcha_oxide
- Size: 351 KB
- Stars: 6
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# captcha_oxide
A high level async library that allows you to use the 2captcha API
to solve various types of captcha puzzles
## Example
```rust
use captcha_oxide::{
CaptchaSolver,
captcha::types::recaptcha::v3::RecaptchaV3,
Captcha,
};
use url::Url;
async fn example() -> captcha_oxide::Result<()> {
let solver = CaptchaSolver::new("YOUR TWOCAPTCHA API KEY");
let args = RecaptchaV3::builder()
.website_url(Url::parse("https://someurl.com")?)
.website_key("SITE_KEY")
.min_score(0.3)
.build();
let solution = solver
.solve(args)
.await?
.solution
.g_recaptcha_response;
assert!(!solution.is_empty());
Ok(())
}
```
## Should I migrate from v5.2.0?
Unless you need `TencentCaptcha` or `AtbCaptcha`, there is no
need to migrate if you have an existing project using version
`5.2.0`.
Version `6.0.0` is a restructure of the API and the macros
aimed at making them more convinient to maintain, especially
as the previous macro system was cumbersome and had very poor
syntax. If you are creating a new project, we do recommend using
version 6.
## MSRV
The Minimum Supported Rust Version is 1.70.0
License: MIT OR Apache-2.0