title: Failing to establish connection using requests
body: <p>I'm trying to use requests to get the text off a website, but it is not working and I'm not sure why. Here is my code:</p>
  
  <pre><code>import requests
  
  print(requests.get("https://projecteuler.net/project/resources/p079_keylog.txt").text)
  </code></pre>
  
  <p>which gives me the following error:</p>
  
  <pre><code>HTTPSConnectionPool(host='projecteuler.net', port=443): Max retries exceeded 
  with url: /project/resources/p079_keylog.txt (Caused by 
  NewConnectionError('&lt;requests.packages.urllib3.connection.VerifiedHTTPSConnectio
  n object at 0x000002701CC15128&gt;: Failed to establish a new connection: [Errno 
  11001] getaddrinfo failed',))
  </code></pre>
  
  <p>So it seems a connection cannot be made. The website is valid and works. Is there anything simple I'm doing wrong that may be causing this?</p>