print(requests.get('https://httpbin.org/cookies/set?foo=bar').json())
print(requests.get('https://httpbin.org/cookies').json())
s = requests.Session()
print(s.get('https://httpbin.org/cookies/set?foo=bar').json())
print(s.get('https://httpbin.org/cookies').json())
s = requests.Session()
s.cookies.set_policy(BlockAll())
print(s.get('https://httpbin.org/cookies/set?foo=bar').json())
print(requests.get('https://httpbin.org/cookies').json())
Как отключить обработку файлов cookie с помощью библиотеки запросов Python?