request请求包含cookies

手动抽取cookies

cookies='SINAGLOBAL=9232144026738.271.1557816919705; UOR=,,www.baidu.com; ULV=1650523278739:63:2:1:1623689953959.3884.1650523278711:1649825727485'

headers = {'User-Agent': UA,'cookie':cookies}  
with requests.get(url0, headers=headers,timeout=15, verify=False) as response:
  print(response.text)

posted on 2022-04-21 16:04  耀扬  阅读(169)  评论(0编辑  收藏  举报

导航