英文:
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.
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论