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.
- 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
pip install requests
git clone https://github.com/CNMengHan/PyProxyListTest.git
cd PyProxyListTest
# Update proxies list first!
nano proxies.txt
# Run the tester
python main.py
Result Legend:
- ✅
Protocol
: Working (with latency in ms) - ❌
Protocol
: Not supported
- Core Libraries:
requests
for HTTP communicationconcurrent.futures
for thread pooling
- Test Logic:
- Sequential protocol variant testing (e.g., socks4 -> socks4a)
- Multiple endpoint verification
- Auto-fallback between protocol variants
- Best latency recording per protocol
- Timeout: 5 seconds per connection attempt
- Protocol variant auto-detection
- China-specific site testing (Baidu/Bing CN)
- User-agent spoofing prevention
- Connection error resilience
PRs welcome for:
- Improved protocol handling
- Additional test targets
- Performance optimizations
MIT © 2025 CNMengHan