import requests url = 'https://example.com' response = requests.get(url) html_content = response.text print(html_content)