import requests
url = ‘http://www.xicidaili.com’
proxy = {
‘http’: ‘http://root:Yao+ql2011@101.200.50.18:8118’
headers = {
‘User-Agent’:’Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36’
}
response = requests.get(url, headers=headers, proxies=proxy)
print(response.text)