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