【问题标题】:Google Sheets/Excel Web Scraping - Variable page count into Link URLGoogle Sheets/Excel Web Scraping - 链接 URL 中的可变页数
【发布时间】:2021-11-29 14:07:17
【问题描述】:

如果有更简单的方法,请 lmk,但这是我目前所拥有的。

=importhtml("https://example/101", "list", 4)

每页有 100 个项目,所以如果这是在 A1 中,想要这样的内容:

=importhtml("https://example/201", "list", 4)

进入A101(或B1,稍后更改为单列)

... 以此类推,因此 url 的最后一部分每次都会增加 100。

【问题讨论】:

    标签: web-scraping google-sheets google-sheets-formula


    【解决方案1】:

    尝试:

    ={IMPORTHTML("https://example/101", "list", 4)
      IMPORTHTML("https://example/201", "list", 4)}
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-25
      • 2022-01-10
      • 1970-01-01
      • 2014-06-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-07
      相关资源
      最近更新 更多