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