def get_file():
    url = 'https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv'
    import requests
    r = requests.get(url)
    with open('cases.csv', 'wb') as f:
        f.write(r.content)
    print(r.status_code)
    print(r.headers['content-type'])
    print(r.encoding)
def get_file():
    url = 'https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-states.csv'
    import requests
    r = requests.get(url)
    with open('cases.csv', 'wb') as f:
        f.write(r.content)
    print(r.status_code)
    print(r.headers['content-type'])
    print(r.encoding)