【问题标题】:Google Sheets: Using ImportXML to get text out of spanGoogle 表格:使用 ImportXML 使文本超出范围
【发布时间】:2021-10-04 15:13:12
【问题描述】:

我想将该网站的底价导入我的 Google 表格: https://digitaleyes.market/collections/Turtles

例如现在的数字“22”

我尝试了以下但没有成功:

=importxml("https://digitaleyes.market/collections/Turtles";"/html[1]/body[1]/div[1]/div[2]/main[1]/div[1 ]/div[1]/div[2]/div[1]/span[2]/span[1]/text()")

=importxml("https://digitaleyes.market/collections/Turtles";"/html[1]/body[1]/div[1]/div[2]/main[1]/div[1 ]/div[1]/div[2]/div[1]/span[2]/span[1]")

我一直只得到#NV。

谁能帮帮我?

提前致谢!

【问题讨论】:

    标签: html css google-sheets google-sheets-formula


    【解决方案1】:

    由于页面是在客户端而不是在服务器端使用 javascript 构建的,因此您将无法通过 importxml / importhtml 函数检索数据。

    请看这里https://webapps.stackexchange.com/questions/115664/how-to-know-if-google-sheets-importdata-importfeed-importhtml-or-importxml-fun

    【讨论】:

    • 哦,可悲... :( 不过还是谢谢你!
    • 对于一些网站,你可以在源码里面找到一个json。不幸的是,这里不是这样。
    猜你喜欢
    • 2019-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-29
    • 1970-01-01
    • 1970-01-01
    • 2021-12-28
    相关资源
    最近更新 更多