s.get('https://test.com',auth=('user','test'))
x=s.cookies
print(x)
这是我的代码,输出是
<RequestsCookieJar[<Cookie __cfduid=asdasd1232fgdb323123 for .testcom/>, <Cookie JSESSIONID=123fdf54fgfa for test.com/gpcs-web-war>]>
现在,我想得到cfduid和JSESSIONID如何从输出中提取
Tags:
在
s.cookies
上使用.get_dict()
,然后使用[]
表示法取出值例如:
相关问题 更多 >
编程相关推荐