让requests支持socks的办法
The modern way:
pip install -U requests[socks]
then
import requests
resp = requests.get(‘http://go.to',
proxies=dict(http=’socks5://user:pass@host:port’,
https=’socks5://user:pass@host:port’))
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!