def validate_url(url):
    if not url.count('://'):
        url = "http://" + url
    validate = URLValidator(verify_exists=True)
    try:
        validate(url)
        return True
    except __HOLE__:
        return False
dataset/ETHPy150Open haystack/eyebrowse-server/common/view_helpers.py/validate_url