【发布时间】:2021-12-05 04:14:07
【问题描述】:
我正在使用 Content Egg WordPress 插件,它会抓取价格并更新它,但我无法从网页获取价格。 (https://www.trazy.com/experience/detail/lotte-world-seoul-discount-ticket)
我尝试了这些 XPath。
`.//div[@class='price-desktop']//span[@class='selling notranslate']`
`.//div[@class='price-desktop']//span[2]`
但我可以看到 Xpath 找到了元素但它返回“0”。 Please see the development tool image here.
请帮我找到合适的 XPath 以获取价格。
【问题讨论】:
标签: python html dom xpath web-crawler