selenium-无窗口模式
引入options即可
from time import sleep from selenium import webdriver from selenium.webdriver.chrome.options import Options options = Options() options.add_argument('--headless') br = webdriver.Chrome(options=options) url = "https://www.tmall.com" br.get(url)