Answer the question
In order to leave comments, you need to log in
How to save cookies to a file in Python?
url = 'https://ya.ru'
r = requests.get(url)
for item in r.cookies:
print(item)
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question