Check whether a website is up or down
Is it up?
$ pip install isitup
$ isitup github.com Yay, github.com is up. It took 0.022 ms for a 301 response code with an ip of 220.127.116.11
>>> from isitup.main import check >>> check('github.com') u'Yay, github.com is up.\nIt took 0.022 ms for a 301 response code with an ip of 18.104.22.168'