def validate_url(url):
    """Checks if URL is valid
    :param url: URL
    :return: True if URL is valid, otherwise false
    """
    try:
        from urlparse import urlparse
    except:
        from urllib.parse import urlparse
    try:
        result = urlparse(url)
        return result.scheme
    except:
        return False
