#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)