Answers for "(“requests” library) in python"

31

how to import requests in python

pip install requests
Posted by: Guest on May-21-2020
3

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

Code answers related to "(“requests” library) in python"

Browse Popular Code Answers by Language