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运行无头镀铬。但是不断收到以下错误:
[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标志,但仍然会收到相同的错误。
答案 0 :(得分:0)
我不完全确定这是您要查找的分辨率,但您只需使用http
URL
http://steamcommunity.com/
而不使用SSL
{{ 1}}后缀。这将(我希望)阻止提出此通知。