Crates.io | open_proxies |
lib.rs | open_proxies |
version | 0.1.1 |
source | src |
created_at | 2022-11-03 14:07:19.387657 |
updated_at | 2022-11-15 16:53:05.71983 |
description | Simple and fast proxy checker that include protocol validation |
homepage | https://km8oz.github.io/open_proxies |
repository | https://github.com/KM8Oz/open_proxies.git |
max_upload_size | |
id | 704259 |
size | 98,824 |
⭐️ Leave me a start please ⭐️
it will motivate me to continue maintaining and adding futures
About | Technologies | Requirements | Starting | lib Usage | exec Usage | License | Author
Simple and fast proxy checker that include protocol validation;
The following tools were used in this project:
Before starting :checkered_flag:, you need to have Git and Rust installed.
# install using cargo:
$ cargo install open_proxies
# install manualy:
$ curl https://github.com/KM8Oz/open_proxies/archive/refs/tags/[binary]
use open_proxies::{compute_proxy, readfile}
#[tokio::main]
async fn main(){
let proxies = readfile("./socks5.txt".into(), ).await;
if proxies.is_some() {
println!("🔥 start computing! 🔥");
for proxie in proxies.unwrap() {
let is_valid = compute_proxy(proxie.clone(), 1, 2).await;
println!("{:?}", is_valid);
}
}
}
Usage: open_proxies [OPTIONS] --input <FILENAME>
Options:
-i, --input <FILENAME> TXT file path where proxies ready to be parsed
-o, --out <FILENAME> file path where live proxies will be saved [default: live.txt]
-t, --timeout <NUMBER> single proxy compute iteration timeout in seconds [default: 2]
-n, --threads <NUMBER> threads number used for proxies computing [default: 10]
-r, --retrys <NUMBER> how many time a single proxy will be tested (>=1) [default: 2]
-h, --help Print help information
-V, --version Print version information
USAGE:
-a <example1> open_proxies -i ./socks.txt -o ./live.txt -t 2 -r 2 -n 10
-b <example2> open_proxies -i ./socks.txt -o ./live.txt
This project is under license from MIT. For more details, see the LICENSE file.
Made with :heart: by @KM8Oz