Skip to content

Instantly share code, notes, and snippets.

@thanakijwanavit
Created September 12, 2020 10:36
Show Gist options
  • Save thanakijwanavit/827bdedfa35a3bd0504a5e2475b9e551 to your computer and use it in GitHub Desktop.
Save thanakijwanavit/827bdedfa35a3bd0504a5e2475b9e551 to your computer and use it in GitHub Desktop.
validate a string url, dict or anything else
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