Answers for "request.get() python"

8

get request python

import requests

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

python send get request with headers

r=requests.get("http://www.example.com/", headers={"content-type":"text"})
Posted by: Guest on November-16-2020
3

python requests get

# pip install requests
import requests
req = requests.get('<url here>', 'html.parser')
print(req.text)
Posted by: Guest on April-06-2020

Python Answers by Framework

Browse Popular Code Answers by Language