demo_requests_response_text.py:
import requests url = 'https://www.w3schools.com/python/demopage.htm' x = requests.get(url) print(x.text)
C:\Users\My Name>python demo_requests_response_text.py
<!DOCTYPE html>
<html>
<body>
<h1>This is a Test Page</h1>
</body>
</html>