import requests
url = "http://www.baidu.com"
response = requests.get(url)
print(type(response.cookies))
cookies = requests.utils.dict_from_cookiejar(response.cookies)
print(cookies)
requests模块把cookiejar对象转化为字典
最新推荐文章于 2023-08-07 13:22:32 发布