Answers for "python request get example"

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
8

get request python

import requests

x = requests.get('https://w3schools.com')
print(x.status_code)
Posted by: Guest on August-14-2020

Browse Popular Code Answers by Language