title: Help with urllib + proxy in Python
body: <p>My program isn't running properly as should be...</p>
  
  <p>I'm getting only the error message (except part) of the urlopen with the proxy... why?
  At least, one of the proxy was tested and work correctly...</p>
  
  <p>please, some one take a look on the code here:
  <a href="http://pastebin.com/cBfv5H8J" rel="nofollow noreferrer">http://pastebin.com/cBfv5H8J</a></p>
  
  <p>edit:</p>
  
  <p>the code doesn't work on the first try part, this one</p>
  
  <pre><code>        try:
              h = urllib.urlopen(website, proxies = {'http': proxylist})
              break
  </code></pre>
  
  <p>and always return me the </p>
  
  <pre><code>        except:
              print '['+time.strftime('%Y/%m/%d %H:%M:%S')+'] '+'ERROR. Trying again... (%s)' % proxy
              time.sleep(1)
  </code></pre>