https://www.ztatz.nl/python-internet-availability/
Python Internet availability