Python requests - saving cookie for later url usage
Posted
by
PythonRocks
on Stack Overflow
See other posts from Stack Overflow
or by PythonRocks
Published on 2012-09-27T15:33:21Z
Indexed on
2012/09/27
15:37 UTC
Read the original article
Hit count: 521
I been trying to get a cookie and post it to a url in later use in the program, but I cant seem to get the cookie parameters to work.
Right now I have
response = requests.get("url")
But how exactly do I retrive cookies from this url and post them to a new url (the same cookies). The tutorial in requests is somewhat vague on the topic and gives examples I cannot test. Hope someone can help with further examples.
This is python 2.7 btw.
© Stack Overflow or respective owner