#如何规避selenium被检测
原创
©著作权归作者所有:来自51CTO博客作者wx63a427ac86e31的原创作品,请联系作者获取转载授权,否则将追究法律责任
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('https://www.taobao.com/')