python requests(三)set-cookie

s = requests.Session()
s.get('http://xxxxx.org/cookies/set/sessioncookie/1234')
r = s.get("http://xxxx.org/cookies")

print(r.text)
# '{"cookies": {"sessioncookie": "1234"}}'

你可能感兴趣的:(python requests(三)set-cookie)