#coding = utf-8from selenium import webdriverchrome_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)
本文共 301 字,大约阅读时间需要 1 分钟。
#coding = utf-8from selenium import webdriverchrome_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)
转载于:https://www.cnblogs.com/yanqingxu/p/9041771.html