Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python requests get all cookies

//Python requests get all cookies:

If you need the path and thedomain for each cookie, which get_dict() is not exposes, you can parse the cookies manually, for instance:

[
    {'name': c.name, 'value': c.value, 'domain': c.domain, 'path': c.path}
    for c in session.cookies
]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #requests #cookies
ADD COMMENT
Topic
Name
5+9 =