title: Failed to establish a new connection: [Errno -2] Name or service not known
body: <p>i'm running this script on python:</p>
  
  <pre><code>import requests
  url = "http://finance.yahoo.com/quote/AAPL?p=AAPL"
  response = requests.get(url)
  print(response)
  </code></pre>
  
  <p>and i'm getting the following error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "python", line 6, in &lt;module&gt;
  requests.exceptions.ConnectionError: HTTPConnectionPool(host='finance.yahoo.com', port=80): Max retries exceeded with url: /quote/AAPL?p=AAPL (Caused by NewConnectionError('&lt;requests.packages.urllib3.connection.HTTPConnection object at 0x7fcbf36d3a20&gt;: Failed to establish a new connection: [Errno -2] Name or service not known',))
  </code></pre>
  
  <p>what could be the reason?</p>
  
  <p>thanks</p>