import requests
import re


def get_and_clean_data(url):
    """Function to get data from a given URL, then remove any newline
    tab, and multiple space characters.  Those will be replaced with
    single whitespace chracters.
    
    Params -
        :url: Core URL from which to retrieve and clean data    
    """
    
    resp = requests.get(url)
    d = ""
    if resp.status_code == 200:
        d = resp.text
        d = re.sub(r"([\n|\s|\t]+)", "  ", d)
        d = re.sub(r"(\s){2,}", " ", d)
    return d.strip()