python request response code example
Example 1: get request python
import requests
x = requests.get('https://w3schools.com')
print(x.status_code)
Example 2: python response
# It is the response you get. It has many attributes.
import requests
response = request.get('https://abc.com')
print(response.[the response attribute])
# Some response attributes:
response.status_code
response.json()
response.text