Skip to main content
All CollectionsSoftware tutorials
Testing Our Proxies with a Python Script
Testing Our Proxies with a Python Script
Victoria avatar
Written by Victoria
Updated over a week ago

This guide provides step-by-step instructions on testing our proxies using a Python script.

The script fulfills customers' expectations for advanced proxy testing, offering crucial information such as:

Successful requests: 
Errors:
Success Rate:
Unique IPs:
Duplicate IPs:
Geo accuracy:
Fastest latency:
Longest latency:
Average latency:
Time to run:

Additionally, it generates a text file with proxy errors in the same folder as the script.


Installation:

Windows:

  1. Download the latest version of Python from the official Python website:

  2. Run the installer, ensuring to check the option that says "Add Python to PATH" during the installation process.

  3. Verify Python installation by opening the Command Prompt and typing:

    python --version
  4. After installing Python, install the requests module by executing the following command in the Terminal:

    pip install requests

macOS:

  1. Python is preinstalled on macOS. Verify the version with this command:

    python3 --version
  2. Afterward, install the requests module by executing the following command in the Terminal:

    pip3 install requests

Launching the Script:

  1. Download the script file from the following link: soax_checker.py

  2. Open your Terminal and navigate to the path where your script is located:

    Windows example:

    cd C:\Users\mikes\Desktop\Proxytests

    macOS example:

    cd /Users/mikes/downloads/Proxytests

  3. Run the script with the following command:

    Windows:

    python soax_checker.py

    macOS:

    python3 soax_checker.py

  4. The script will prompt you to provide details:

    Ports range (e.g., 9001-49998): 9001-9001
    Requests to make: 100
    Login: <your package login>
    Password: wifi;us

  5. Here are the results you'll get:

    Successful requests: 99
    Errors: 1
    Success Rate: 99.00%
    Unique IPs: 98
    Duplicate IPs: 1
    Geo accuracy: US:99
    Fastest latency: 0.99 seconds
    Longest latency: 15.20 seconds
    Average latency: 3.35 seconds
    Time to run: 15.41 seconds

Done, you have successfully tested the proxy! 🎉

Did this answer your question?