demo_requests_response_cookies.py:
import requests url = 'https://begtut.com/python/demopage.htm' x = requests.get(url) print(x.cookies)
➜ begtut>python demo_requests_response_cookies.py
<RequestCookieJar[]>