{"id":25343871,"url":"https://github.com/cnmenghan/pyproxylisttest","last_synced_at":"2025-04-08T14:45:52.740Z","repository":{"id":276214816,"uuid":"928596774","full_name":"CNMengHan/PyProxyListTest","owner":"CNMengHan","description":"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.","archived":false,"fork":false,"pushed_at":"2025-02-06T22:50:40.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T11:05:30.324Z","etag":null,"topics":["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"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CNMengHan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-06T22:29:27.000Z","updated_at":"2025-02-09T19:57:45.000Z","dependencies_parsed_at":"2025-02-06T23:38:26.333Z","dependency_job_id":null,"html_url":"https://github.com/CNMengHan/PyProxyListTest","commit_stats":null,"previous_names":["cnmenghan/pyproxylisttest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNMengHan%2FPyProxyListTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNMengHan%2FPyProxyListTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNMengHan%2FPyProxyListTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CNMengHan%2FPyProxyListTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CNMengHan","download_url":"https://codeload.github.com/CNMengHan/PyProxyListTest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247866114,"owners_count":21009238,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2025-02-14T10:59:15.990Z","updated_at":"2025-04-08T14:45:52.717Z","avatar_url":"https://github.com/CNMengHan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔍 PyProxyListTest\n\n**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.**\n\n## 🚀 Features\n- **Protocol Diversity**: Tests proxies through 4 core protocols:\n  - HTTP/HTTPS \n  - SOCKS4/SOCKS4a\n  - SOCKS5/SOCKS5h\n- **Concurrent Testing**: 50-thread concurrent verification\n- **Smart Latency Measurement**: \n  - Auto-selects fastest valid protocol variant\n  - Tests against multiple targets:\n    - httpbin.org (primary validation)\n    - Baidu (中国站点)\n    - Bing China\n- **Clear Reporting**: Visual results with success/failure indicators and latency metrics\n\n## ⚙️ Installation\n```bash\npip install requests\ngit clone https://github.com/CNMengHan/PyProxyListTest.git\ncd PyProxyListTest\n```\n\n## 🧮 Usage\n```python\n# Update proxies list first!\nnano proxies.txt\n\n# Run the tester\npython main.py\n```\n\n**Result Legend**:\n- ✅ `Protocol`: Working (with latency in ms)\n- ❌ `Protocol`: Not supported\n\n## 🛠 Technical Implementation\n- **Core Libraries**:\n  - `requests` for HTTP communication\n  - `concurrent.futures` for thread pooling\n- **Test Logic**:\n  1. Sequential protocol variant testing (e.g., socks4 -\u003e socks4a)\n  2. Multiple endpoint verification\n  3. Auto-fallback between protocol variants\n  4. Best latency recording per protocol\n- **Timeout**: 5 seconds per connection attempt\n\n## 🌟 Key Advantages\n- Protocol variant auto-detection\n- China-specific site testing (Baidu/Bing CN)\n- User-agent spoofing prevention\n- Connection error resilience\n\n## 🤝 Contribution\nPRs welcome for:\n- Improved protocol handling\n- Additional test targets\n- Performance optimizations\n\n## 📜 License\nMIT © 2025 CNMengHan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnmenghan%2Fpyproxylisttest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcnmenghan%2Fpyproxylisttest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcnmenghan%2Fpyproxylisttest/lists"}