Unfortunately, the requests does not allow cookies to be passed in the headers, so this method does not work. Сookies should be passed as a separate argument r = requests.get(url, cookies=cookies)
requests
cookies
headers
r = requests.get(url, cookies=cookies)