Merhabalar, chrome haricinden farklı bir proxy chrome tabanlı browser kullanıyorum. add_experimental_option kullanmaya çalışıyorum fakat aşağıdaki hatayı alıyorum. Hata hakkında bilgisi olan var mı? Site bot olduğumu anlayıp engelliyor. Gizlenmek için kullanabileceğim farklı metotlar var mı? (Browser manuel kullanırken sorun yok fakat python ile açtığımda bot olduğu algılanıyor)
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
import requests
import time
import json
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chromium.options import ChromiumOptions
from selenium.webdriver.common.by import By
options = Options()
options.debugger_address="127.0.0.1:"+port
#options.add_argument("--enable-javascript")
options.add_argument("--disable-blink-features=AutomationControlled")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option("useAutomationExtension", False)
driver =webdriver.Chrome(options)
hata:
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: cannot parse capability: goog:chromeOptions
from invalid argument: unrecognized chrome option: excludeSwitches
Stacktrace:
rom invalid argument: unrecognized chrome option: useAutomationExtension