title: Urllib2.urlopen and request freezes
body: <p>Edit:I have found that i made a mistake, because the cause of the error wasn't urllib but nltk, which wasn't able to process a long string which came from this exact page. Sorry for this one.</p>
  
  <p>I do not know why, but this no matter if I use Urllib2.urlopen or request when I come across a specific url.</p>
  
  <pre><code>import requests
  r = requests.get('SomeURL')
  print html = r.text
  </code></pre>
  
  <p>Here is its behavior.
  1) When I go thought a loop of 200 urls it freezes each time at that exactly the same URL. It stays here for hours if i do not terminate program.
  2) When u try with just example of the code outside of the loop it works.
  3) If i blacklist just this url it goes through the loop without problems.</p>
  
  <p>It actually doesn't return any kind of error code and it work good outside of loop and also timeout is set but it doesn't do anything. It still hangs for an indefinite time.</p>
  
  <p>So is there any other way to forcefully stop the http get request after a certain time, because the timeout doesn't work. Is there any other library other than urllib2 and request that could do the job, and that follows timeout limits?</p>
  
  <pre><code>for i in range(0,mincount):
      code(call the request for urlist[i]) 
      It always works but freezes only when I request this site. If i had 200 request to yahoo   for example it would work. But when i try go to this particular url i cannot.  
  #end
  </code></pre>
  
  <p>edit: It is a standard for cycle and there is not much room for error.</p>