Get your own Python server Result Size: 625 x 565
x
 
import requests
#the required first parameter of the 'get' method is the 'url':
x = requests.get('https://w3schools.com/python/demopage.htm')
#print the response text (the content of the requested file):
print(x.text)
<!DOCTYPE html>
<html>
<body>

<h1>This is a Test Page</h1>

</body>
</html>