title: How can we check if a website is actually running or not?
body: <p>I'm using python urllib2 module.
  code snippet </p>
  
  <pre><code>try:
        code =urllib2.urlopen(req).getcode()
  except urllib2.HTTPError, e:
        code = e.getcode()
        print e.getcode()
  except urllib2.URLError,e:
        f = open('report.txt','a')
        f.write("%d     %s      %s\n"%(startup['id'],startup['name'],startup['website']))
        f.close()
  
  except:
       #f.write("%d     %s      %s"%(startup['id'],startup['name'],startup['website']))
       pass
  </code></pre>
  
  <p>But there is a problem in  sites like "<a href="http://www.raddiwale.in/" rel="nofollow">http://www.raddiwale.in/</a>" getting response code =200  but still site is not alive.</p>