How to let your users know that their network is not supported
import http.client as httplib
def available(timeout: int = 1):
conn = httplib.HTTPConnection("www.google.com", timeout=timeout)
try:
conn.request("HEAD", "/")
conn.close()
return True
except:
conn.close()
return False