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
code:
a="http://www.example.com" try: print urllib.urlopen(a) except: print a+" site does not exist"