Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python requests cookies

#if you mean how can get cookies by a request
import requests
client = requests.get("https://www.google.com")
print(client.cookies)
#or
print(client.cookies.get_dict())
#if you mean requests with sent cookies 
import requests
client = request.get("https://www.google.com",cookies={"a":"12"})
# although the cookies you send can not be remembered by the client
# l hope this is helpful
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #requests #cookies
ADD COMMENT
Topic
Name
5+9 =