from selenium import webdriver
from selenium.webdriver import ChromeOptions
from time import sleep
option = ChromeOptions()
option.add_experimental_option(‘excludeSwitches‘, [‘enable-automation‘])
driver = webdriver.Chrome(r‘chromedriver.exe‘,options=option)
driver.get(‘http://xxx.com/‘)
原文:https://www.cnblogs.com/shepherdss/p/14461012.html