编程语言
首页 > 编程语言> > Python之Requests模块使用详解(十)

Python之Requests模块使用详解(十)

作者:互联网

转自:http://www.weidianyuedu.com/content/0013617062600.html

八、关于代理
我们也可以在程序中指定代理来进行http或https访问(使用proxies关键字参数),如下:

proxies = {
“http”: “http://10.10.1.10:3128”,
“https”: “http://10.10.1.10:1080”,
}
requests.get(“http://pythontab.com”, proxies=proxies)

标签:http,1.10,Python,详解,https,10.10,Requests,proxies,com
来源: https://blog.csdn.net/xiaoyaozi2020/article/details/120241058