【问题标题】:Excel vba web scraping: how to hide chrome browser while code executionExcel vba网页抓取:如何在代码执行时隐藏chrome浏览器
【发布时间】:2021-03-20 22:35:17
【问题描述】:

我想问一下,如果将 Chrome o Edge 和 Selenium 与 Excel vba(网络抓取)一起使用,我无法像使用 Internet.Explorer 那样显示浏览器 IE.Visible = False 谢谢

【问题讨论】:

    标签: vba selenium google-chrome web screen-scraping


    【解决方案1】:

    对不起,准确的更好

    使用 Internet Explorer

    Set IE = createobject (InternetExplorer.Application)
    With IE
         .Visible = False
         .Navigate URL
    End With
    

    使用 Chrome 和 Selenium 吗?

      Dim driver As New WebDriver
         With driver
              **.Visible = False ????**
             .Start "Chrome", ""
             .Get URL
      End With
    

    【讨论】:

      猜你喜欢
      • 2021-12-06
      • 2019-11-29
      • 2021-12-25
      • 1970-01-01
      • 2014-11-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多