| Crates.io | gooty-proxy |
| lib.rs | gooty-proxy |
| version | 0.2.0 |
| created_at | 2025-04-10 06:06:29.317025+00 |
| updated_at | 2025-04-10 06:06:29.317025+00 |
| description | Gathers and judges proxies. |
| homepage | https://github.com/Azzybana/gooty-proxy |
| repository | https://github.com/Azzybana/gooty-proxy |
| max_upload_size | |
| id | 1627679 |
| size | 6,436,341 |
Gooty Proxy is a library for discovering, testing, and managing HTTP and SOCKS proxies. It provides tools for working with proxy servers, including discovery, validation, metadata collection, and management.
Add Gooty Proxy to your Cargo.toml:
[dependencies]
gooty-proxy = "0.2.0"
Here's a quick example of how to use Gooty Proxy:
use gooty_proxy::ProxyManager;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut manager = ProxyManager::new()?;
manager.init_judge().await?;
manager.init_sleuth()?;
let proxy_url = "http://example.com:8080";
manager.add_proxy_from_url(proxy_url)?;
manager.check_proxy(proxy_url).await?;
manager.enrich_proxy(proxy_url).await?;
if let Some(proxy) = manager.get_proxy(proxy_url) {
println!("Proxy type: {}", proxy.proxy_type);
println!("Anonymity: {}", proxy.anonymity);
if let Some(country) = &proxy.country {
println!("Country: {}", country);
}
}
Ok(())
}
Contributions are welcome! Feel free to open issues or submit pull requests.
This project is licensed under the Apache License 2.0.
Happy proxying! 🌐