无法使用 =IMPORTXML 导入不同变体的定价。

huangapple go评论82阅读模式
英文:

Unable to import different variant pricing using =IMPORTXML

问题

=importxml(A1,"//p[1]/span[1]/span[1]") 但我只能获取到2kg变体的价格,而不能获取到6kg或11.4kg的价格。

英文:

Can anyone advise how I can view pricing for multiple variants that use the same web page?

I have been able to use the formula =importxml(A1,"//p[1]/span[1]/span[1]") for items that only have one price, and that has been working for me. However, most of the products I want to compare have multiple variants. When I use this formula, I am only able to see the 2kg variant and not the others.

For example: https://www.jurassicbark-online.co.uk/products/acana-adult?_pos=1&_sid=284ff281e&_ss=r&variant=14087536050240

What should the formula be for each variant (2, 6, 11.4kg)?

Thank you all for your assistance!

=importxml(A1,"//p[1]/span[1]/span[1]") but I am only receiving the pricing for 2kg variant, not 6 or 11.4kg

答案1

得分: 0

2公斤变种是唯一在HTML中显示的价格。其他变种的价格是使用JavaScript动态显示的,并且无法通过IMPORTXML访问。

英文:

The 2kg variant is the only price that is displayed in html. Prices of other variants are dynamically displayed using Javascript and are not accessible by IMPORTXML

huangapple
  • 本文由 发表于 2023年6月26日 17:46:16
  • 转载请务必保留本文链接:https://go.coder-hub.com/76555491.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定