【发布时间】:2018-03-31 12:47:54
【问题描述】:
from selenium import webdriver
opt = webdriver.chrome.options.Options()
opt.add_argument("--headless")
opt.add_argument("--disable-gpu")
driver = webdriver.Chrome(chrome_options=opt);
driver.get("https://steamcommunity.com/")
我正在尝试使用 Selenium 运行无头 chrome。但不断收到以下错误:
[0331/134342.207:INFO:CONSOLE(0)] "The SSL certificate used to load resources from https://steamcommunity-a.akamaihd.net will be distrusted in the future. Once distrusted, users will be prevented from loading these resources. See https://g.co/chrome/symantecpkicerts for more information.", source: https://steamcommunity.com/ (0)
我已尝试添加 --ignore-certificate-errors 标志,但仍然收到相同的错误。
【问题讨论】:
标签: python-3.x google-chrome selenium webdriver ssl-certificate