title: ConnectionError: HTTPSConnectionPool(host = 'api.github.com', port=443): Max retries exceeded using GeckoDriverManager and WebdriverManager for Python
body: <p>I made a web-scraping script using Selenium, Pandas, bf4 and GeckoDriver</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  from selenium import webdriver
  from selenium.webdriver.firefox.options import Options
  from webdriver_manager.firefox import GeckoDriverManager
  
  url = &quot;https://example/url/target&quot;
      
  option = Option()
  option.headlers = True
  driver = webdriver.Firefox(executable_path=r'C:\Users\Public\geckodriver.exe')
  driver.get(url)
  </code></pre>
  <p>With this code the script <strong>works 100%</strong> but as I need it to be a portable application (transfer to other computers) I don't want the user to have to manually specify the Geckodriver path, let alone have to download it.</p>
  <hr />
  <p>Geckodriver has an auto-installer but in all the ways that I try to make i get an error, searching here in the forum I found this alternative (and the error)</p>
  <pre><code>url = &quot;https://example/url/target&quot;
  
  driver = webdriver.Firefox(executable_path=rGeckoDriverManager().install())
  
  driver.get(&quot;https:www.python.org&quot;)
  driver.get(url)
  </code></pre>
  <p>Result:</p>
  <pre><code>ConnectionError: HTTPSConnectionPool(host = 'api.github.com', port=443): Max retries exceeded with url: /repos/mozilla/geckodriver/releases/latest (Caused by NewConnectionError('&lt;urllib3.connection.HTTPSConnection object at 0x0000025186487F98&gt;: Failed to stabilize a new connection: [Errno 11001 getaddriinfo failed',))
  </code></pre>
  <hr />
  <p>I also tried following the: <a href="https://pypi.org/project/geckodriver-autoinstaller/#description" rel="nofollow noreferrer">https://pypi.org/project/geckodriver-autoinstaller/#description</a> :</p>
  <pre><code>import geckodriver_autoinstaller
  geckodriver_autoinstaller.install()
  
  driver = webdriver.Firefox()
  driver.get(&quot;http://www.python.org&quot;)
  assert &quot;Python&quot; in driver.title
  </code></pre>
  <p>Result:</p>
  <pre><code>&lt;urlopen error [Errno 11001] getaddrinfo failed&gt;
  </code></pre>
  <hr />
  <p>All these options I tested also with <code>socket.getddrinfo('localhost', 8080)</code> and also using Git hub personal Token in <code>os.environ['GH_TOKEN'] = 'exampletoken'</code></p>
  <p>Does anyone know why I'm not able to automate the driver installation?</p>
  <hr />
  <p>W10 64 bit,
  Firefox Latest Version,
  Libs and anaconda latest version,
  Python = 3.6,
  Internet with VPN (from work)</p>