添加如下代码
from selenium.webdriver import ChromeOptions
option = ChromeOptions()标签:webdriver,网页,option,提示,selenium,driver,ChromeOptions,add From: https://www.cnblogs.com/SparkProgram/p/17372192.html
option.add_experimental_option('excludeSwitches', ['enable-automation'])
option.add_argument("disable-blink-features=AutomationControlled")
driver = webdriver.Chrome("chromedriver",0,options=option)
driver.get("https://www.xiaohongshu.com")