怎么测试代理链?有哪些简单有效的方法?

18 Replies, 1483 Views

我之前也纠结怎么测试代理链,后来发现用Python写个小脚本挺方便的。
可以用`requests`库设置代理链,然后测试连通性。
比如:
```python
import requests
proxies = {
'http': 'http://proxy1:port',
'https': 'http://proxy2:port'
}
response = requests.get('http://example.com', proxies=proxies)
print(response.text)
```
这样就能看到代理链的效果了,懒人必备哈哈哈。

Messages In This Thread



Users browsing this thread: 1 Guest(s)