• 13-12-2020, 00:49:20
    #1
    Merhabalar,Selenium proxy bağlanıyor siteye gidiyor fakat site yüklenmeden(hata verdikten sonra yüklenme bitiyor ve görünürde bir sorun yok) aşağıdaki hatayı veriyor.Yardımcı olabilecek var mı?
    Kod:
    driver_path = "C:/Users/computer/Desktop/chromedriver"
    options = {
    'proxy': {
        'https':user:pass@adres',
    
        'no_proxy': 'localhost,127.0.0.1,dev_server:8080'
             }
              }
    
    driver = webdriver.Chrome(executable_path=driver_path, seleniumwire_options=options)
    driver.get("http://whatismyipaddress.com")    #try catch denendi sonuç olumsuz
    Hata:
    Error making requestTraceback (most recent call last):  File "C:\Users\computer\Desktop\Python programlar\***\venv\lib\site-packages\seleniumwire\proxy\proxy2.py", line 91, in proxy_request    conn.request(self.command, path, req_body, dict(req.headers))  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 1244, in request    self._send_request(method, url, body, headers, encode_chunked)  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 1290, in _send_request    self.endheaders(body, encode_chunked=encode_chunked)  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 1239, in endheaders    self._send_output(message_body, encode_chunked=encode_chunked)  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 1026, in _send_output    self.send(msg)  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 966, in send    self.connect()  File "C:\Users\computer\Desktop\Python programlar\***\venv\lib\site-packages\seleniumwire\proxy\proxy2.py", line 368, in connect    super().connect()  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 1406, in connect    super().connect()  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 942, in connect    self._tunnel()  File "C:\Users\computer\Anaconda3\lib\http\client.py", line 921, in _tunnel    message.strip()))OSError: Tunnel connection failed: 406 Proxy Error: server_error Error creating ext request: TUN_ERR: DNS resolution failed(empty_address_list)
  • 13-12-2020, 16:13:16
    #2
    Sorun hala devam ediyor
  • 18-12-2020, 17:09:40
    #3
    from selenium import webdriver as wd
    PROXY = "11.456.448.110:8080"
    chrome_options = wd.ChromeOptions()
    chrome_options.add_argument('--proxy-server=%s' % PROXY)
    chrome = wd.Chrome(chrome_options=chrome_options)
    chrome.get("http://whatismyipaddress.com")