import requests # Imports the library in the script url = "https://example.com" response = requests.get(url) # Send request to website html_content = response.text # Get the HTML content of the page # optionally, print it on console (see its ugliness) print(html_content)