import requests url = 'https://codegrepper.com/' response = requests.get(url) print(response.headers)