Python爬虫——requests_代理

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爬虫,python,爬虫)