title: Python: URLError: <urlopen error [Errno 10060]
body: <p><strong>OS: Windows 7; Python 2.7.3 using the Python GUI Shell</strong></p>
  
  <p>I'm trying to read a website through Python, and several authors use the <code>urllib</code> and <code>urllib2</code> libraries.  To store the site in a variable, I've seen a similar approach proposed:</p>
  
  <pre><code>import urllib
  import urllib2
  g = "http://www.google.com/"
  read = urllib2.urlopen(g)
  </code></pre>
  
  <p>The last line generates an error after a 120+ seconds:</p>
  
  <pre><code>&gt; Traceback (most recent call last):   File "&lt;pyshell#27&gt;", line 1, in
  &gt; &lt;module&gt;
  &gt;     r = urllib2.urlopen(o)   File "C:\Python27\lib\urllib2.py", line 126, in urlopen
  &gt;     return _opener.open(url, data, timeout)   File "C:\Python27\lib\urllib2.py", line 400, in open
  &gt;     response = self._open(req, data)   File "C:\Python27\lib\urllib2.py", line 418, in _open
  &gt;     '_open', req)   File "C:\Python27\lib\urllib2.py", line 378, in _call_chain
  &gt;     result = func(*args)   File "C:\Python27\lib\urllib2.py", line 1207, in http_open
  &gt;     return self.do_open(httplib.HTTPConnection, req)   File "C:\Python27\lib\urllib2.py", line 1177, in do_open
  &gt;     raise URLError(err) URLError: &lt;urlopen error [Errno 10060] A connection attempt failed because the connected party did not properly
  &gt; respond after a period of time, or established connection failed
  &gt; because connected host has failed to respond&gt;
  </code></pre>
  
  <p>I tried bypassing the <code>g</code> variable and trying to <code>urlopen("http://www.google.com/")</code> with no success either (it generates the same error after the same length of time).</p>