我正在尝试使用 ImportXML 检索出现在品牌名称下方的产品数量。但我收到错误“导入的内容为空”
我使用的代码是 =IMPORTXML("https://www.nykaafashion.com/designers/puma/c/4886?searchType=SearchedFromHistory&internalSearchTerm=Puma","//*[@id="app-container"]/ div[2]/div[2]")
链接:“https://www.nykaafashion.com/designers/puma/c/4886?searchType=SearchedFromHistory&internalSearchTerm=Puma”
尝试检索产品数量 - 请参阅附图。
请帮忙解决。
问候
使用的公式:IMPORTXML("https://www.nykaafashion.com/designers/puma/c/4886?searchType=SearchedFromHistory&internalSearchTerm=Puma","//*[@id="app-container"]/div[2 ]/div[2]")
您可以尝试使用以下xpath:
//*[@data-at='plp-product-count']