I\'ve been trying to figure out what the best way to validate a URL is (specifically in Python) but haven\'t really been able to find an answer. It seems like there isn\'t o
I would use the validators package. Here is the link to the documentation and installation instructions.
It is just as simple as
import validators url = 'YOUR URL' validators.url(url)
It will return true if it is, and false if not.