I am trying to validate a URL from my input's which needs to validate whether it is https or not. I see many solutions with regex, urlparser, urllib
I tried different modules in python like validator-collection
validators.url.url(value, public=False)
url('http://foobar.dk') - returns True or False
is_url('https://foobar.dk') - returns True or False
but this tells me for both http and https, I want to throw an error for any URL other than "https". Is there any module to validate only https URL's in python?