【问题标题】:Selenium block requests, scripts before page loadedSelenium 块请求,页面加载前的脚本
【发布时间】:2020-02-16 14:50:56
【问题描述】:

例如,我试图阻止一些请求; gAnalytics 或 gMaps 等。我以前使用 BrowserMobProxy,但现在,我使用 Tor 网络作为代理。无论如何,我需要做的是在驱动程序打开之前或驱动程序打开时阻止一些特定的 URL。我需要它,因为 gMaps 加载确实需要我的刮板时间。

相关主题:

enter link description here
enter link description here
enter link description here
enter link description here

【问题讨论】:

    标签: selenium http selenium-chromedriver geckodriver blacklist


    【解决方案1】:

    解决办法是:

    https://chrome.google.com/webstore/detail/http-request-blocker/eckpjmeijpoipmldfbckahppeonkoeko?hl=en

    编辑和安装这样的扩展。这可以作为请求阻塞的解决方案。

    【讨论】:

      猜你喜欢
      • 2021-05-26
      • 2016-09-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-13
      相关资源
      最近更新 更多