Python使用代理调用墙api
socks代理开全局模式也调用不了
发现requests.get有个proxies参数,看下自己的端口按如下操作修改一下就可以用了
response = requests.get(url, headers=header,proxies={'http': 'http://127.0.0.1:1087','https': 'https://127.0.0.1:1087'})
Contact me:
socks代理开全局模式也调用不了
发现requests.get有个proxies参数,看下自己的端口按如下操作修改一下就可以用了
response = requests.get(url, headers=header,proxies={'http': 'http://127.0.0.1:1087','https': 'https://127.0.0.1:1087'})