用requests进行IP代理



ip='192.168.1.1:8000'

psoxy={'http':'http://'+ip}

r=requests.get('http://www.baidu.com',proxies=proxy)

这样就完成了使用ip的代理

猜你喜欢

转载自blog.csdn.net/goodriver1/article/details/80070302