Note : You must have
~/.cargo/bin/
in yourPATH
to runproxy-rs
directly.
bash
git clone https://github.com/zevtyardt/proxy.rs.git
bash
cd proxy.rs
cargo install --path .
to install.or install directly using the command
bash
cargo install --git https://github.com/zevtyardt/proxy.rs
Usage: proxy-rs [OPTIONS] <COMMAND>
Commands
- grab
: Find proxies without performing any checks.
- find
: Find and check proxies.
- serve
: Run a local proxy server (BETA)
Options
- --max-conn <MAX_CONN>
: The maximum number of concurrent checks of proxies. Default: 200.
- -t, --timeout <TIMEOUT>
: Time in seconds before giving up. Default: 8.
- --log <LOG_LEVEL>
: Logging level. Default: warn. Possible values: debug, info, warn, error.
Find and show 10 HTTP(S) proxies from ID (Indonesia) with the high level of anonymity:
bash
proxy-rs find --types HTTP HTTPS -l 10 --levels High --countries ID
Options
- --types <TYPES>...
: Type(s) (protocols) to check for proxy support. Possible values: HTTP, HTTPS, SOCKS4, SOCKS5, CONNECT:80, CONNECT:25.
- --files <FILES>...
: Path to the file with proxies. If specified, it is used instead of providers.
- --levels <LEVELS>...
: Level(s) of anonymity (for HTTP only). By default, any level. Possible values: Transparent, Anonymous, High.
- --max-tries <MAX_TRIES>
: The maximum number of attempts to check a proxy. Default: 1.
- --support-cookies
: Flag indicating that the proxy must support cookies.
- --support-referer
: Flag indicating that the proxy must support referer.
- -c, --countries <COUNTRIES>...
: List of ISO country codes where the proxies should be located.
- -l, --limit <LIMIT>
: The maximum number of working proxies. Default: 0.
- -f, --format <FORMAT>
: The format in which the results will be presented. Default: default. Possible values: default, text, json.
- -o, --outfile <OUTFILE>
: Save found proxies to a file. By default, the output is displayed on the console.
Find and save to a file 10 ID proxies (without a check):
bash
proxy-rs grab --countries ID --limit 10 --outfile ./proxies.txt
Options
- -c, --countries <COUNTRIES>...
: List of ISO country codes where the proxies should be located.
- -l, --limit <LIMIT>
: The maximum number of working proxies. Default: 0.
- -f, --format <FORMAT>
: The format in which the results will be presented. Default: default. Possible values: default, text, json.
- -o, --outfile <OUTFILE>
: Save found proxies to a file. By default, the output is displayed on the console.
Run a local proxy server that distributes incoming requests to a pool of found HTTP(S) proxies with the high level of anonymity:
still in progress
The following features are currently being worked on:
Contributions to Proxy.rs are welcome! Here's how you can contribute:
Proxy.rs is licensed under the MIT License. See the LICENSE file for further details.