您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

如何通过Python使用GeckoDriver和Firefox使Selenium脚本无法检测?

如何通过Python使用GeckoDriver和Firefox使Selenium脚本无法检测?

这一事实 硒驱动 / 被检测出_不依赖于任何特定的 _GeckoDriverFirefox的 版本。该 网站 本身可以检测网络流量,并可以识别 浏览器客户端 ,即 Web浏览器 作为 。

根据 WebDriver Interface的最新编辑草稿中的 ,当用户代理处于远程控制时,最初设置为 的标志 设置为 。

NavigatorAutomationInformation

现在,该 接口不应在上公开 。

mixin
NavigatorAutomationInformation

所以,

webdriver
    Returns true if webdriver-active flag is set, false otherwise.

在哪里

navigator.webdriver
    Defines a standard way for co-operating user agents to inform the document that it is controlled by WebDriver, for example so that alternate code paths can be triggered during automation.

因此,最重要的是:

但是,一些避免在网络抓取时被检测到的通用方法如下:

python 2022/1/1 18:31:40 有209人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶