安装
apt update
apt install -y chromium chromium-driver
pip install selenium
使用
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
opts = Options()
opts.add_argument('--no-sandbox')
driver = webdriver.Chrome(options=opts)
driver.get('http://www.baidu.com')