Linux root 用户下 selenium 运行chrome --no-sandbox的问题的解决
#coding = utf-8
from selenium import webdriver
chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument("--no-sandbox")
driver= webdriver.Chrome(chrome_options=chrome_options)
driver.get("https://www.baidu.com")
print(driver.page_source)

浙公网安备 33010602011771号