I need to check if the url is valid, I don't need its contents. When I use urllib.request.urlopen(), it takes unnecessary time to get even the contents of the url.
Is there a method in urllib.request to do this?
I need to check if the url is valid, I don't need its contents. When I use urllib.request.urlopen(), it takes unnecessary time to get even the contents of the url.
Is there a method in urllib.request to do this?