def validate_url(url):
    '\n    Auxiliary method to validate an urllib\n    :param url: An url to be validated\n    :type url: string\n    :returns: True if the url is valid\n    :rtype: bool\n    '
    scheme = url.split('://')[0].lower()
    if (scheme not in url_schemes):
        return False
    if (not bool(url_regex.search(url))):
        return False
    return True
Auxiliary method to validate an urllib
:param url: An url to be validated
:type url: string
:returns: True if the url is valid
:rtype: bool
def validate_url(url):
    '\n    Auxiliary method to validate an urllib\n    :param url: An url to be validated\n    :type url: string\n    :returns: True if the url is valid\n    :rtype: bool\n    '
    scheme = url.split('://')[0].lower()
    if (scheme not in url_schemes):
        return False
    if (not bool(url_regex.search(url))):
        return False
    return True