An open API service indexing awesome lists of open source software.

https://github.com/cnmenghan/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.
https://github.com/cnmenghan/pyproxylisttest

async concurrent-requests https-proxy latency-measurement multithreading network-security network-tools proxy-checker proxy-list proxy-tester requests-library-python socks-proxy web-scraping-tools

Last synced: 2 months ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 🔍 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
```bash
pip install requests
git clone https://github.com/CNMengHan/PyProxyListTest.git
cd PyProxyListTest
```

## 🧮 Usage
```python
# 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