import requests,json
print(requests.get('https://api.github.com'));
# Getting response in json format
response=requests.get('https://api.github.com');
#print(response.json());
#print(response.headers);
print(response.headers['content-type']);
print(response.headers['date']);
print(requests.get('https://api.github.com'));
# Getting response in json format
response=requests.get('https://api.github.com');
#print(response.json());
#print(response.headers);
print(response.headers['content-type']);
print(response.headers['date']);
Comments
Post a Comment