当前位置: 移动技术网 > IT编程>脚本编程>Python > selenium设置谷歌无头浏览器

selenium设置谷歌无头浏览器

2019年08月27日  | 移动技术网IT编程  | 我要评论

往复机,三明学院培训网,鹿泉贴吧

from selenium import webdriver
from selenium.webdriver.chrome.options import options

def browse():
    chrome_options=options()
    chrome_options.add_argument('--headless')
    driver=webdriver.chrome(chrome_options=chrome_options,executable_path="chromedriver.exe")
    return driver

 

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网