import requests headers accept text html application xhtml xml applica

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
import requests
headers = {
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'en-GB,en;q=0.9,ru-RU;q=0.8,ru;q=0.7,en-US;q=0.6',
'cache-control': 'max-age=0',
'cookie': 'asdf',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36',
} res = requests.get('https://www.adidas.fr', headers=headers)
print(res.text)[:1000]