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 126.96.36.199
>>> 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 188.8.131.52'