Created
September 12, 2020 10:36
-
-
Save thanakijwanavit/827bdedfa35a3bd0504a5e2475b9e551 to your computer and use it in GitHub Desktop.
validate a string url, dict or anything else
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
| import validators | |
| valid=validators.url('https://codespeedy.com/') | |
| if valid==True: | |
| print("Url is valid") | |
| else: | |
| print("Invalid url") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment