antibot-rs
Auto-managed Byparr / FlareSolverr client for bypassing bot detection in Rust web scrapers.
Features
- Provider-agnostic — works with Byparr, FlareSolverr, or any compatible Docker image
- Docker lifecycle management — auto-pulls images, starts containers, and waits for health checks
- Simple API —
solve(url)returns rendered HTML + cookies after challenges are cleared - Builder pattern — configure port, timeout, container name, and health check behavior
Usage
use ;
let client = builder
.provider
.auto_start
.build
.await?;
let solution = client.solve.await?;
println!;
println!;
Connect to an existing instance
let client = connect;
let solution = client.solve.await?;
Builder options
builder
.provider // or Provider::Custom("my-image:latest".into())
.port // host port (default: 8191)
.auto_start // pull & start container if needed
.container_name // Docker container name
.max_timeout_ms // per-request timeout (default: 60s)
.health_check_attempts // retries after start (default: 15)
.build
.await?;
Requirements
- Docker must be installed and accessible (for
auto_start) - One of: Byparr, FlareSolverr, or a compatible image with a
/v1endpoint
License
MIT