Answers for "get html page python"

6

python get html from url

import requests

url = requests.get("http://google.com")
htmltext = url.text
Posted by: Guest on May-10-2020
2

python request get html code

# from http://zetcode.com/python/requests/
import requests as req

resp = req.get("http://www.webcode.me")

print(resp.text)
Posted by: Guest on December-06-2020

Browse Popular Code Answers by Language