Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get requests python

import requests

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

print r.status_code
print r.headers['content-type']
Source by gist.github.com #
 
PREVIOUS NEXT
Tagged: #requests #python
ADD COMMENT
Topic
Name
5+2 =