Answers for "get requests python example html"

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
17

get requests from python

import requests

response = requests.get('<api-endpoint>')
response.raise_for_status()

data = response.json()
print(data)
Posted by: Guest on March-24-2021

Browse Popular Code Answers by Language