# 让浏览器在后台默默运行
from selenium.webdriver import Chrome
from selenium.webdriver.common.keys import Keys
# 包装下拉框元素的包
from selenium.webdriver.support.select import Select
# 无头浏览配置
from selenium.webdriver.chrome.options import Options
import time
# 准备参数配置
opt = Options()
# 无头
opt.add_argument("--headless")
# 不显示
opt.add_argument("--disable-gpu")
web = Chrome(options=opt)
web.get("https://ys.endata.cn/BoxOffice/Movie")
web.close()
selenium_无头浏览器
最新推荐文章于 2024-04-30 10:59:44 发布