添加如下代码
from selenium.webdriver import ChromeOptions
option = ChromeOptions()
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")