from selenium import webdriver
option = webdriver.ChromeOptions()
# 防止崩溃
option.add_argument("""--no-sandbox""")
# 谷歌文档提到需要加上这个属性来规避bug
option.add_argument("""--disable-gpu""")
wd = webdriver.Chrome(options=option)
原文:https://www.cnblogs.com/learnsth/p/14902066.html