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)

 

posted @ 2020-03-11 18:18  brady-wang  阅读(650)  评论(0编辑  收藏  举报