title: ReadTimeout: HTTPSConnectionPool(host='', port=443): Read timed out. (read timeout=10)
body: <p>I'm doing a webscraping on a site and sometimes when running the script I get this error:</p>
  
  <pre><code>ReadTimeout: HTTPSConnectionPool(host='...', port=443): Read timed out. (read timeout=10)
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>url = 'mysite.com'
  all_links_page = []
  page_one = requests.get(url, headers=getHeaders(), timeout=10)
  sleep(2)
  if page_one.status_code == requests.codes.ok:
      soup_one = BeautifulSoup(page_one.content.decode('utf-8'), 'lxml')
      page_links_one = soup_one.select("ul.product_list") 
  
      for links_one in page_links_one:
          for li in links_one.select("li"):
              all_links_page.append(li.a.get("href").strip())
  </code></pre>
  
  <p>The answers I found was not satisfactory</p>