Selenium + Python solve Chrome is being controlled way to automatically software (V78 version valid)

from selenium import webdriver
option = webdriver.ChromeOptions()
option.add_experimental_option('useAutomationExtension', False)
option.add_experimental_option("excludeSwitches", ['enable-automation'])
browser = webdriver.Chrome(r'd:\chromedriver.exe',chrome_options=option)
url = "https://toefl.neea.cn/login"
browser.get(url)

This method is effective for the V78 version and above, while addressing the issue of black and white sections of the site.

Published 53 original articles · won praise 47 · Views 460,000 +

Guess you like

Origin blog.csdn.net/ryu2003/article/details/103407797