import time
from selenium import webdriver
from selenium.webdriver.chrome.options import Options

chrome_options = Options()
chrome_options.add_argument("--headless")
chrome_options.add_argument('--disable-dev-shm-usage')
chrome_options.add_argument("--no-sandbox")
browser = webdriver.Chrome(chrome_options=chrome_options,
                           executable_path="/root/chromedriver")

url = "http://www.baidu.com"
browser.get(url)
print("su")
time.sleep(10)
browser.quit()