python requests .script code example
Example 1: how to import requests in python
pip install requests
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']