我想用requests.get设置代理IP,但是控制台输出是我自己的IP,我想问爬虫工程师,怎么解决?
这是我的密码

发布于 2022-08-29 01:36:33
我试过使用您的代理,但我没有工作,所以尝试了与web不同的代理,它可以工作,我可以尝试。
import requests
url ="http://httpbin.org/get"
ip = "119.129.239.236:4245"
proxies = {
"http": "http://130.41.55.190:8080",
"https":"https://130.41.55.190:8080"
}
response = requests.get(url,proxies=proxies)
print(response.json()) https://stackoverflow.com/questions/73488801
复制相似问题