import requests
url = 'https://www.baidu.com'
headers = {
'User-Agent': '',
'Cookie': ''
}
proxies = {
'https': '223.96.90.216:8085'
}
response = requests.get(url, headers=headers, proxies=proxies)
print(response.text)
Python爬虫——requests_代理
最新推荐文章于 2024-09-02 09:55:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)