python requests 使用 ss 代理 wangxiuwen 2019-02-22 技术 tech, 技术 0 评论 字数统计: 71(字) 阅读时长: 1(分)12345678proxies = {'http': 'socks5h://127.0.0.1:1086', 'https': 'socks5h://127.0.0.1:1086'}result = requests.post( <url>, data=<data>, headers=<headers>, timeout=100, verify=False, proxies=proxies)socks5 和 socks5h 的区别:1234socks5h: the hostname is resolved by the SOCKS server (also known as CURLPROXY_SOCKS5_HOSTNAME type);socks5: the hostname is resolved locally;