import requests
cookies = {
'PHPSESSID': '020cqd40sl6d4hf1it3qj31hsf',
'mg_geo_id': '2398',
'_ga': 'GA1.2.847220501.1663434030',
'_gid': 'GA1.2.572976887.1663434030',
'_ym_uid': '16634340311009022023',
'_ym_d': '1663434031',
'_clck': '13bgbpl|1|f4y|0',
'_ym_isad': '1',
'BX_USER_ID': '705ef92adb20a15d972706dfd014ce49',
'_clsk': '1xvbset|1663436095612|1|1|b.clarity.ms/collect',
}
headers = {
'Accept': '*/*',
'Accept-Language': 'ru,en;q=0.9',
'Connection': 'keep-alive',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
# Requests sorts cookies= alphabetically
# 'Cookie': 'PHPSESSID=020cqd40sl6d4hf1it3qj31hsf; mg_geo_id=2398; _ga=GA1.2.847220501.1663434030; _gid=GA1.2.572976887.1663434030; _ym_uid=16634340311009022023; _ym_d=1663434031; _clck=13bgbpl|1|f4y|0; _ym_isad=1; BX_USER_ID=705ef92adb20a15d972706dfd014ce49; _clsk=1xvbset|1663436095612|1|1|b.clarity.ms/collect',
'Origin': 'https://magnit.ru',
'Referer': 'https://magnit.ru/',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.167 YaBrowser/22.7.5.1027 Yowser/2.5 Safari/537.36',
'X-Requested-With': 'XMLHttpRequest',
'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="102", "Yandex";v="22"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
}
data = {
'page': '7',
}
response = requests.post('https://magnit.ru/promo/', cookies=cookies, headers=headers, data=data)