download the dates file from the internet and parse it as a dates file

def get_dates_link(url):
    """ download the dates file from the internet and parse it as a dates file"""
    urllib.request.urlretrieve(url, "temp.txt")
    dates = get_dates_file("temp.txt")
    os.remove("temp.txt")
    return dates