def curate_url(url):

    """ Put the url into a somewhat standard manner.

    Removes ".txt" extension that sometimes has, special characters and http://

    Args:
        url: String with the url to curate

    Returns:
        curated_url
    """

    curated_url = url
    curated_url = curated_url.replace(".txt", "")
    curated_url = curated_url.replace("\r", "")  # remove \r and \n
    curated_url = curated_url.replace("\n", "")  # remove \r and \n
    curated_url = curated_url.replace("_", ".")

    # remove "http://" and "/" (probably at the end of the url)
    curated_url = curated_url.replace("http://", "")
    curated_url = curated_url.replace("www.", "")
    curated_url = curated_url.replace("/", "")

    return curated_url