TheSpeedX / PROXY-List

Get PROXY List that gets updated everyday
3.12k stars 794 forks source link

Proxy Tester with Menu #29

Closed 5h4kun1 closed 1 year ago

5h4kun1 commented 1 year ago

Introduction: The Proxy Tester with Menu is a Python script that automates the process of testing proxy IP addresses. It allows users to select a file containing IP addresses of different proxy types (HTTP or HTTPS) and performs a connectivity test on each IP address. The script provides a user-friendly menu interface and displays a loading animation during the testing process.

Features:

  1. Menu Interface: The script presents a menu that allows users to choose between two files (http.txt and https.txt) containing IP addresses for testing.
  2. Connectivity Testing: The script performs a connectivity test on each IP address using the requests library. It checks if the IP address can successfully connect to http://www.google.com.
  3. Progress Meter: A progress meter is displayed during the testing process, showing the current progress as a percentage of completed IP addresses.
  4. Results Saving: The script saves the test results to a file named results.txt, indicating whether each IP address is active or inactive.
  5. Loading Animation: A loading animation is displayed before the testing process begins, providing a visually appealing experience.
5h4kun1 commented 1 year ago

hey wanna update it ??

TheSpeedX commented 1 year ago

Hey @5h4kun1 Thanks for your contribution. I want to suggest a few changes to it.

5h4kun1 commented 1 year ago

In this optimized version, the script includes the following changes:

  1. The script now prompts the user to enter the domain on which they want to test the proxies. If no input is provided, the script uses the default domain (Google).
  2. The test_ip_addresses function now accepts

    the domain parameter, allowing users to specify an alternative domain for testing.

  3. The animation has been improved by removing the file number and total files display, resulting in a cleaner progress output.
  4. The script eliminates unnecessary variables and simplifies the code structure for better readability.
  5. Performance optimizations have been made by reducing unnecessary computations and removing redundant code.

i have updated it into my repo can u please check once

5h4kun1 commented 1 year ago

Thanks!

TheSpeedX commented 1 year ago

Thanks, @5h4kun1 for your contribution. This looks good to go.

However, There can be many optimizations done to speed this up, like using multi-threading, more configurability , adding command line arguments, using better libraries than requests like urllib (inbuilt module) or faster-than-requests and async jobs.

If you would like to make new contibutions kindly open new issues and PR.

5h4kun1 commented 1 year ago

Hey i would really liked to contribute further and yes in 2-3 days i will again reopen it with the following changes