def _clean_url(self, url):
    url = url.strip('>),.]\r\n')
    if ('<' in url):
        url = url[:url.find('<')]
    elif ('>' in url):
        url = url[:url.find('>')]
    return url
def _clean_url(self, url):
    url = url.strip('>),.]\r\n')
    if ('<' in url):
        url = url[:url.find('<')]
    elif ('>' in url):
        url = url[:url.find('>')]
    return url