【问题标题】:Importxml from Etsy site in Google Sheets从 Google 表格中的 Etsy 网站导入xml
【发布时间】:2019-02-28 10:17:14
【问题描述】:

我想用importxml从这个链接中提取销售信息

link

我的公式:

substitute(substitute(to_text(index(IMPORTXML(strong textLINK;"//div['before-sticky-nav']//div['trust-signals col-group content   no-banner']//div['show-lg show-xl show-tv shop-info col-lg-7 pl-lg-3']//p['trust-signal-row text-gray-lighter']/span[3]");1));" Sales";"");" Sale";"")

这个公式已经工作了 1 个月,昨天它没有工作。我已经尝试了xpath 的许多变体,但仍然没有运气。 有什么想法吗?

【问题讨论】:

    标签: google-sheets google-sheets-importxml


    【解决方案1】:
    =VALUE(REGEXREPLACE(REGEXEXTRACT(QUERY({ARRAY_CONSTRAIN(IMPORTDATA(
     "https://www.etsy.com/shop/1000Lightyear"), 4000, 1)},
     "WHERE Col1 CONTAINS 'mr-xs-2 pr-xs-2 br-xs-1"">'"), 
     "\>([0-9 A-Za-z]+)\<"),
     " Sales| Sale", ""))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-12-11
      • 2023-01-04
      • 2021-12-15
      相关资源
      最近更新 更多