The Proxy Tester script is designed to test the validity and response time of HTTP/HTTPS proxies. It uses the faster_than_requests
library for faster proxy testing.
Make sure you have Python 3 installed on your system. You can download Python from the official website: Python Downloads
- Clone the repository or download the script files to your local machine.
- Open a terminal or command prompt and navigate to the directory where the script files are located.
- Create a virtual environment (optional but recommended):
- Run
python3 -m venv env
to create a virtual environment named "env". - Activate the virtual environment:
- On Windows:
.\env\Scripts\activate
- On macOS/Linux:
source env/bin/activate
- On Windows:
- Run
- Install the required dependencies by running the following command:
pip install -r requirements.txt
- Prepare a text file containing a list of HTTP proxies. Each proxy should be in the format
host:port
, with each proxy on a new line. Save the file ashttp.txt
. - Prepare a text file containing a list of HTTPS proxies. Each proxy should be in the format
host:port
, with each proxy on a new line. Save the file ashttps.txt
. - Run the script using the following command:
Replace
python proxy_tester_menu.py http.txt https.txt output.txt
http.txt
andhttps.txt
with the actual file names of your proxy lists. The results will be saved tooutput.txt
. - The script will start testing the proxies and display the progress and results in the terminal.
- Once the testing is complete, the results will be saved to the specified output file (
output.txt
). - You can open the output file to view the results. Each line will contain the proxy address, response time, and validity status.
Note: If you encounter any errors or issues, please ensure that the proxy files (http.txt
and https.txt
) are correctly formatted, and the proxy servers are accessible.
- Validates proxies by sending HTTP requests to specified domains.
- Supports both HTTP and HTTPS proxies.
- Multi-threaded for faster testing.
- Configurable number of threads.
- Customizable timeout for request.
- Generates a report with the results.
- Python 3.6+
- Packages listed in the
requirements.txt
file.
-
Clone the repository:
git clone https://github.com/your-username/proxy-tester.git
-
Install the required packages:
pip install -r requirements.txt
-
Prepare your proxy list in the
input.txt
file, with each proxy URL on a new line. -
Run the script:
python proxy_tester_menu.py input.txt output.txt
input.txt
is the path to your input file containing the list of proxies.output.txt
is the path to the output file where the test results will be saved.
You can modify the following settings in the proxy_tester_menu.py
script:
THREADS
: The number of threads to use for testing proxies.TIMEOUT
: The timeout for each request.
Checks for valid SOCKS4 & SOCKS5 proxies. This code is Python3 port of SOCKS-Proxy-Checker which was written in Python2 This code runs on python3.
For Help Type
python3 socker.py -h
Command Line Usage:
python3 socker.py -i <proxy_file_list> -o <file_to_write> -th <threads> -t <timeout>
You can use the auto mode for fetching proxies from default APIs.
python3 socker.py -auto -o <file_to_write> -th <threads> -t <timeout>
You can use the URL mode to add new urls to fetch proxies.
python3 socker.py -u proxlylist1.site -u proxlylist2.site -o <file_to_write> -th <threads> -t <timeout>
All the parameters are optional.
File, Auto, URL modes can be used simulaenously to gather more proxies.
The default thread count is 30 and timeout is 5 seconds.
Proxy list - An absolute path to the file containing a list of proxies in the of IP:Port
Output file - An absolute path to the file that the live SOCKS4/5 proxies will be written to.
Threads - The number of threads that will be used to check proxies. More threads = quicker scanning. If the thread count is too high, your internet connection may be interrupted and false timeouts/connection refused errors will be printed.
Timeout - The amount of time to give a potential proxy to repond before giving up and trying the next.
This script attempts to verify if a given IP:Port listing is a SOCKS4/5 proxy by completeing a SOCKS4/5 handshake with it. In order to maintain the highest level of compatibility I could, I did not use third party libraries and stuck with the default Python libraries.
You can Also Use My PROXY List to get New SOCKS Proxy. It Gets Updated Every 24 hours.
PROXY-List Link : https://github.com/TheSpeedX/PROXY-List
To use this script, follow these steps:
- Ensure you have the
requests
library installed. You can install it usingpip install requests
if needed. - Create two files named
http.txt
andhttps.txt
in the same directory as the script. Each file should contain a list of IP addresses to test, with one IP per line. - Run the script using the command:
python proxy_tester_menu.py
. - The menu will be displayed, prompting you to select a file to test. Enter your choice by typing
1
or2
. - If the chosen file is not found or empty, an error message will be displayed. Make sure the file contains valid IP addresses.
- The script will start testing the IP addresses using the selected file. An animation will be displayed to indicate the progress of testing.
- Once the testing is completed, the results will be saved in a file named
results.txt
in the same directory. - The message "Testing complete. Results are saved to results.txt" will be displayed.
Make sure to have the required
http.txt
andhttps.txt
files in the same directory as the script and ensure they contain valid IP addresses.
Sample domains you can set:
www.google.com
www.example.com
www.yahoo.com
www.microsoft.com
www.facebook.com
www.instagram.com
www.twitter.com
www.amazon.com
www.netflix.com
www.reddit.com
www.wikipedia.org
www.apple.com
www.linkedin.com
www.github.com
www.stackoverflow.com
www.spotify.com
www.dropbox.com
www.pinterest.com
www.tumblr.com
www.airbnb.com
For Any Queries:
Ping Me : Telegram