Created
February 20, 2015 01:34
-
-
Save j0lvera/b4c7f2e0c13659480393 to your computer and use it in GitHub Desktop.
Validate url
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_url(url): | |
parsed_url = urlparse.urlparse(url) | |
return bool(parsed_url.scheme) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment