python selenium 打开chrom 忽略ssl错误

2022-01-09 09:20:58 浏览数 (1)

代码语言:javascript复制
chromedriver = "chromedriver.exe"
options = webdriver.ChromeOptions()
options.add_argument('--ignore-certificate-errors')
browser = webdriver.Chrome(chromedriver, chrome_options=options)
browser = webdriver.Chrome(chromedriver)

0 人点赞