import re


def get_links(soup):
    """Get urls fom <a """
    list_url = []
    for url in soup.find_all('a', href=True):
        href = url['href']
        href = re.sub("https?://(www.)?", "", href) 
        href = re.sub("(#.*|/$)", "", href)
        if (href):
            list_url.append(href)
    return list(set(list_url))