让python requests 支持 socks5代理 requests support socket proxy
pip install —upgrade requests “requests[socks]”
import requests
requests.get("http://www.google.com", proxies={"http":"sock5://127.0.0.1:1080"})
或者
pip install requests-unixsocket
import requests_unixsocket as requests
requests.get("http://www.google.com", proxies={"http":"sock5://127.0.0.1:1080"})