Skip to content

A multi-protocol proxy server testing tool that supports HTTP, HTTPS, SOCKS4 and SOCKS5 protocols. Through concurrent testing and intelligent verification mechanisms, it can quickly detect the availability and latency of proxy servers. It is suitable for scenarios such as web crawlers, data collection and privacy protection.

License

Notifications You must be signed in to change notification settings

CNMengHan/PyProxyListTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

🔍 PyProxyListTest

A multi-protocol proxy server testing tool that supports HTTP, HTTPS, SOCKS4 and SOCKS5 protocols. Through concurrent testing and intelligent verification mechanisms, it can quickly detect the availability and latency of proxy servers. It is suitable for scenarios such as web crawlers, data collection and privacy protection.

🚀 Features

  • Protocol Diversity: Tests proxies through 4 core protocols:
    • HTTP/HTTPS
    • SOCKS4/SOCKS4a
    • SOCKS5/SOCKS5h
  • Concurrent Testing: 50-thread concurrent verification
  • Smart Latency Measurement:
    • Auto-selects fastest valid protocol variant
    • Tests against multiple targets:
      • httpbin.org (primary validation)
      • Baidu (中国站点)
      • Bing China
  • Clear Reporting: Visual results with success/failure indicators and latency metrics

⚙️ Installation

pip install requests
git clone https://github.com/CNMengHan/PyProxyListTest.git
cd PyProxyListTest

🧮 Usage

# Update proxies list first!
nano proxies.txt

# Run the tester
python main.py

Result Legend:

  • Protocol: Working (with latency in ms)
  • Protocol: Not supported

🛠 Technical Implementation

  • Core Libraries:
    • requests for HTTP communication
    • concurrent.futures for thread pooling
  • Test Logic:
    1. Sequential protocol variant testing (e.g., socks4 -> socks4a)
    2. Multiple endpoint verification
    3. Auto-fallback between protocol variants
    4. Best latency recording per protocol
  • Timeout: 5 seconds per connection attempt

🌟 Key Advantages

  • Protocol variant auto-detection
  • China-specific site testing (Baidu/Bing CN)
  • User-agent spoofing prevention
  • Connection error resilience

🤝 Contribution

PRs welcome for:

  • Improved protocol handling
  • Additional test targets
  • Performance optimizations

📜 License

MIT © 2025 CNMengHan

About

A multi-protocol proxy server testing tool that supports HTTP, HTTPS, SOCKS4 and SOCKS5 protocols. Through concurrent testing and intelligent verification mechanisms, it can quickly detect the availability and latency of proxy servers. It is suitable for scenarios such as web crawlers, data collection and privacy protection.

Topics

Resources

License

Stars

Watchers

Forks

Languages