title: Connection Aborted Error 10060
body: <p>Using Python 2.7</p>
  
  <p>I am trying to run the following program but it is returning a <strong>Connection Aborted 10060</strong> error</p>
  
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  def re_crawler(pages):
      page = 1
      while page &lt;= pages:
          url = 'http://www.digitalmarketplace.service.gov.uk/g-cloud/search?page=' + str(page) + '&amp;lot=saas'
          code = requests.get(url)
          text = code.text
          soup = BeautifulSoup(text)
          for link in soup.select('div.search-result h2.search-result-title a'):
               href = "http://www.digitalmarketplace.service.gov.uk" + link.get('href')
               print (href)
          page += 1
  
  re_crawler(2)
  </code></pre>
  
  <p>Upon running this program, I am getting the following output</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Users/PB/PycharmProjects/crawler/SaaS UK.py", line 18, in &lt;module&gt;
      re_crawler(2)
    File "C:/Users/PB/PycharmProjects/crawler/SaaS UK.py", line 10, in re_crawler
      code = requests.get(url)
    File "C:\Python27\lib\requests\api.py", line 68, in get
      return request('get', url, **kwargs)
    File "C:\Python27\lib\requests\api.py", line 50, in request
      response = session.request(method=method, url=url, **kwargs)
    File "C:\Python27\lib\requests\sessions.py", line 464, in request
      resp = self.send(prep, **send_kwargs)
    File "C:\Python27\lib\requests\sessions.py", line 576, in send
      r = adapter.send(request, **kwargs)
    File "C:\Python27\lib\requests\adapters.py", line 415, in send
      raise ConnectionError(err, request=request)
  requests.exceptions.ConnectionError: ('Connection aborted.', error(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))
  
  Process finished with exit code 1
  </code></pre>
  
  <p>Kindly advise what this error is about and how to resolve it</p>
  
  <p>Many thanks</p>