Answers for "python 3 requests"

5

install requests python

pip install requests # or pip3 install requests
Posted by: Guest on June-07-2020
4

get requests python

import requests

r = requests.get('https://api.github.com', auth=('user', 'pass'))

print r.status_code
print r.headers['content-type']
Posted by: Guest on April-23-2020

Browse Popular Code Answers by Language