遇事不决,可问春风,春风不语,谨遵本心|

布都御魂

园龄:3年9个月粉丝:2关注:1

selenium浏览器配置

import time

from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains

options = webdriver.ChromeOptions()
# 设置为开发者模式,防止网站识别
options.add_experimental_option(
'excludeSwitches', ['enable-automation'])
# 加载驱动程序,驱动位置需要配置环境变量
browser = webdriver.Chrome(executable_path=r'D:\pythonProject\技术提升\工具\tools\chromedriver.exe',
options=options)

本文作者:布都御魂

本文链接:https://www.cnblogs.com/wolvies/p/15672071.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   布都御魂  阅读(55)  评论(0编辑  收藏  举报
   
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起