python use requests.get code example Example: get request python import requests x = requests.get('https://w3schools.com') print(x.status_code)