i get data from an api in django. The data comes from an order form from another website.
The data also includes an url, for example like example.com
but i can't validate the input because i don't have access to the order form.
The url that i get can also have different kinds. More examples:
example.de
http://example.de
www.example.com
https://example.de
http://www.example.de
https://www.example.de
Now i would like to open the url to get the correct url.
For example if i open example.com
in my browser, i got the correct url http://example.com/
and that is what i wish for all urls.
How can i do that in python fast?