how do i make a get request in python code example
Example 1: how to send get request python
import requests
requests.get("https://www.google.com/")
Example 2: get requests python
import requests
r = requests.get('https://api.github.com', auth=('user', 'pass'))
print r.status_code
print r.headers['content-type']