Created
March 25, 2023 22:53
-
-
Save reefwing/d98ca710db7fb18126e7158331a0d7f7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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