https://github.com/restyler/proxy-checker-cli
Simple CLI-oriented utility to test proxies
https://github.com/restyler/proxy-checker-cli
cli proxy proxy-checker
Last synced: 5 months ago
JSON representation
Simple CLI-oriented utility to test proxies
- Host: GitHub
- URL: https://github.com/restyler/proxy-checker-cli
- Owner: restyler
- Created: 2020-08-26T19:37:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-24T13:18:12.000Z (over 5 years ago)
- Last Synced: 2025-10-17T21:55:56.199Z (8 months ago)
- Topics: cli, proxy, proxy-checker
- Language: JavaScript
- Homepage:
- Size: 63.5 KB
- Stars: 19
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# proxy-checker-cli
Simple utility which is designed to accept a file of ip:port lines and to produce beautiful table of check results in terminal and to write the file with proxies which passed the checks successfully. Processes proxies concurrently (20 threads are running at the same time by default) so can be used for quite large files without overloading the server resources.
## Installation
```
npm i -g proxy-checker-cli
```
## Example usage:
```proxy-checker-cli listofproxies.txt --code=20. -o goodproxies.txt --url=https://google.com```
Which will get proxies from `listofproxies.txt` file, try to request https://google.com and check that reply http code is 20x
## Proxy tests included out of the box:
- Expected http code ( --code=200 ) - regex supported
- Expected text in body ( --text=sometext )
- Expected no specified text in body ( --notext=error )
## Arguments list:
```
--input file The input file to process. The file is expected to contain ip:port lines
without protocol specified. This is a default argument.
-o, --output file Output good ips to txt file.
-v, --verbose Turn on debug output.
-s, --silent Do not output visual table, only write result to files.
-h, --help Print this usage guide.
-t, --timeout number Number of seconds to wait for connection to proxy and for the whole request.
-p, --protocol string Protocol to append to proxy ip (the file is expected to contain ip:port lines
without protocol specified).
-u, --url string Url to connect to validate proxy.
--text string Text expected in body to validate proxy.
--notext string Text expected to not exist in body to validate proxy.
--code string Http code expected for test to succeed.
-c, --concurrency integer Maximum Concurrency threads (default: 20)
--user-agent string User agent to use for http(s) connections to tested websites.
--header headername: headervalue Header to attach to request for http(s) connections to tested websites.
Accepts multiple args.
-l, --limit integer Limit number of proxies to check. Can be negative to trim trailing proxies
from file (like arr.slice(0, -100) in js)
```
## Sample output to terminal: