I'm trying to parse some site which use bot detection algorithms. I use following Chrome Options
chrome_options = Options()
chrome_options.add_argument("start-maximized")
chrome_options.add_experimental_option("detach", True)
chrome_options.add_experimental_option("excludeSwitches", ["enable-automation"])
chrome_options.add_experimental_option('useAutomationExtension', False)
chrome_options.add_argument("--disable-blink-features")
chrome_options.add_argument('--start-maximized')
chrome_options.add_argument('window-size=1920,1080')
chrome_options.add_argument("--disable-blink-features=AutomationControlled")
driver = webdriver.Chrome(executable_path='chromedriver.exe', chrome_options=chrome_options)
driver.get(url)
I was also patched chromedriver.exe remove cdc_ pattern.
When browser window starts and goes to site, site detect it as bot and prevent loading contents. But when browser goes in detach mode and i manually press "Refresh" button, site contents is loading successfully. Simulating press "f5" also don't work, site still block contents loading.