Skip to content

Instantly share code, notes, and snippets.

@reefwing
Created March 25, 2023 22:53
Show Gist options
  • Save reefwing/d98ca710db7fb18126e7158331a0d7f7 to your computer and use it in GitHub Desktop.
Save reefwing/d98ca710db7fb18126e7158331a0d7f7 to your computer and use it in GitHub Desktop.
# Define the header information for the request
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"}
# Send a GET request to the URL with the header information and retrieve the HTML content
response = requests.get(url, headers=headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment