Checking if a website is up,urllib.request.urlopen('http://www.stackoverflow.com').getcode()