import requests


def get_osu_text(map_id):
    """Get the text of a .osu file."""
    print("Downloading map %d" % map_id)
    url = "https://osu.ppy.sh/osu/%d" % map_id
    r = requests.get(url)
    if r.status_code != 200:
        print("Response returned %d" % r.status_code)
        return None
    return r.text