【问题标题】:Grab table from URL in Google App Script从 Google App Script 中的 URL 抓取表格
【发布时间】:2023-03-19 06:19:02
【问题描述】:

在第 6 行的 link answer 中,如何确定应该从 URL 中捕获多少个 getElement("div")getElements("div")[number]

这是URL,我希望从那里捕获表格。

【问题讨论】:

    标签: google-apps-script


    【解决方案1】:

    您可能想考虑使用import.io,这是一个专门用于从网页中提取表格数据的工具,它有一个Apps Script integration

    【讨论】:

      【解决方案2】:

      另一个例子是将表格拉入表格并从表格中访问数据。例如:

      =importhtml("http://www.tradingeconomics.com/zambia/rating","table",1)
      

      这会将特定网页上的第一个表格拉到工作表中。

      【讨论】:

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