I wanted to check if a certain website exists, this is what I\'m doing:
user_agent = \'Mozilla/20.0.1 (compatible; MSIE 5.5; Windows NT)\' headers = { \'User
def isok(mypath): try: thepage = urllib.request.urlopen(mypath) except HTTPError as e: return 0 except URLError as e: return 0 else: return 1