This Python script checks the validity of the proxies by making a request to http://google.com. Valid proxies are saved in an output file.
- Python 3.x
- Library
requests
: can be installed by running the commandpip install requests
.
python3 checker.py <proxy_file> <proxy_type> <output_file>
<proxy_file>
: Path of the file containing the proxies to be tested.<proxy_type>
: Type of proxy to search.<output_file>
: Path to the output file for saving valid proxies.<timeout>
: Timeout in milliseconds for each test request.
python3 checker.py proxies.txt http valides.txt 5000
This script is distributed under the MIT license. Please see the LICENSE file for more information.