def has_ext(url):
    if 'www.' in url:
        url = url.replace('www.', '')
    parsed_url = urlparse(url)
    if parsed_url.path and not parsed_url.netloc:
        return bool(os.path.splitext(parsed_url.path)[1])
    elif parsed_url.netloc:
        return bool(os.path.splitext(parsed_url.netloc)[1])
    return False
Generates a confirmation link for an arbitrary action, such as a password reset.
dataset/ETHPy150Open huntrar/scrape/scrape/utils.py/has_ext--crossover with--dataset/ETHPy150Open ithinksw/philo/philo/contrib/waldo/models.py/PasswordMultiView.make_confirmation_link