Answers for "how to get data from api in python using requests"

9

how to send get request python

import requests
requests.get("https://www.google.com/")
Posted by: Guest on January-05-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

Code answers related to "how to get data from api in python using requests"

Python Answers by Framework

Browse Popular Code Answers by Language