r.headers['Content-Type']
r = requests.get(
    'https://raw.github.com/kennethreitz/requests/master/README.rst')
'Requests:' in r.text
r.headers['Content-Type']
How to download and write a file from Github using Requests