https://github.com/midasvanveen/proxy-rs
Proxy checking using ureq
https://github.com/midasvanveen/proxy-rs
http https proxy proxy-checker rust socks socks4 socks5 ureq
Last synced: 9 months ago
JSON representation
Proxy checking using ureq
- Host: GitHub
- URL: https://github.com/midasvanveen/proxy-rs
- Owner: MidasVanVeen
- License: mit
- Created: 2023-08-26T16:52:48.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-26T20:28:17.000Z (over 2 years ago)
- Last Synced: 2025-02-09T07:16:04.650Z (11 months ago)
- Topics: http, https, proxy, proxy-checker, rust, socks, socks4, socks5, ureq
- Language: Rust
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# proxy-rs - Proxy Checker Tool
proxy_rs is a command-line tool written in Rust for checking the validity and performance of proxy servers. It allows you to quickly assess a list of proxy servers, test their responsiveness, and save the working proxies to an output file.
This project uses ureq, one of the fastest request libraries available for rust.
## Usage
```plain
Usage: proxy_rs [OPTIONS] --file
Options:
-f, --file
-o, --outfile [default: checked-proxies.txt]
-v, --verbose
-t, --timeout [default: 5]
-r, --retries [default: 3]
-T, --threads [default: 200]
-h, --help Print help
-V, --version Print version
```
## Options
- `-f, --file `: Specify the path to the input file containing the list of proxy servers to be checked.
- `-o, --outfile `: Specify the name of the output file where the working proxy servers will be saved. (Default: checked-proxies.txt)
- `-v, --verbose`: Enable verbose mode, providing more detailed output during the checking process.
- `-t, --timeout `: Set the timeout value (in seconds) for each proxy server check. (Default: 5)
- `-r, --retries `: Set the number of retries for failed proxy connection attempts. (Default: 3)
- `-T, --threads `: Set the number of threads to use for parallel proxy checking. (Default: 200)
- `-h, --help`: Print the help message detailing the usage of the tool.
- `-V, --version`: Print the version information of the proxy_rs tool.
## Adding Protocols
If your list of proxy servers is in the format host:port, you can use the provided Python script add-protocol.py to add the protocol prefix. The script takes an input file and a protocol as arguments and outputs the modified list to stdout.
### Usage
```sh
./add-protocol.py input-proxies.txt http > output.txt
```
Replace http with the desired protocol.
## Examples
Check a list of proxy servers with the "https" protocol, verbose output, a timeout of 10 seconds, and using 100 threads:
``` sh
proxy_rs -f proxies.txt -p https -v -t 10 -T 100
```
## License
This project is licensed under the [MIT License](https://mit-license.org).
Feel free to contribute, report issues, or suggest improvements on [GitHub](https://github.com/MidasVanVeen/proxy-rs).