python新手,最近做一个用request请求网站的爬虫。求各位不吝赐教
import requests
cookies = {'JSESSIONID':'0000QBNvjLHNzdhYntd-JV9idYQ:-1', 'themestyles':'1'}
headers = {
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36',
}
url = r'https://10.64.16.22:9443/trff...'
host = '10.64.16.22'
r=requests.get(url, headers=headers, cookies=cookies)
报错