title: violation of protocol (_ssl.c:590)
body: <p>I am trying to run a code that sends a search term to google and record google suggestions. </p>
  
  <pre><code>import requests
  import re
  import time
  from random import randint
  import pandas as pd
  from param_config import config
  import cPickle
  
  START_SPELL_CHECK="&lt;span class=\"spell\"&gt;Showing results for&lt;/span&gt;"
  END_SPELL_CHECK="&lt;br&gt;&lt;span class=\"spell_orig\"&gt;Search instead for"
  
  HTML_Codes = (
          ("'", '&amp;#39;'),
          ('"', '&amp;quot;'),
          ('&gt;', '&amp;gt;'),
          ('&lt;', '&amp;lt;'),
          ('&amp;', '&amp;amp;'),
  )
  
  def spell_check(s):
      q = '+'.join(s.split())
      time.sleep(  randint(0,2) ) #relax and don't let google be angry
      r = requests.get("https://www.google.co.uk/search?q="+q)
      content = r.text
      start=content.find(START_SPELL_CHECK) 
      if ( start &gt; -1 ):
          start = start + len(START_SPELL_CHECK)
          end=content.find(END_SPELL_CHECK)
          search= content[start:end]
          search = re.sub(r'&lt;[^&gt;]+&gt;', '', search)
          for code in HTML_Codes:
              search = search.replace(code[1], code[0])
          search = search[1:]
      else:
          search = s
      return search ;
  
  searches = [ "metal plate cover gcfi", 'artric air portable", "roll roofing lap cemet", "basemetnt window", "vynal grip strip", "lawn mower- electic" ]
  speel_check_search=[]
  for i,search in enumerate(searches):
      speel_check_search.append(spell_check(str(search)))
  </code></pre>
  
  <p>The code runs fine for some time but with  Large searches list the code runs for a while then terminates with the following error:
  requests.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:590)</p>