[英]requests.get(proxies=proxies) does't work,why?
I want to set the proxy IP with requests.get, but the console output is my own IP, I would like to ask Crawler Engineers, how to solve?我想用requests.get设置代理IP,但是控制台output是我自己的IP,请问爬虫工程师,怎么解决?
the imgeis my code imgeis 我的代码
I tried using your proxy but i did not work so tried diffrent proxy from web and it work i can try我尝试使用您的代理,但我没有工作,所以尝试了 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())
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.