【发布时间】:2021-12-29 20:16:15
【问题描述】:
我需要来自以下链接的数据: https://sa.investing.com/equities/saudi-arabia 所需数据位于“基础”子页面中
我使用了以下内容: IMPORTXML("https://sa.investing.com/equities/saudi-arabia","//[(@id = "marketInnerContent")] | //[(@id = "filter_fundamental ")]")
但它不起作用。
请帮忙,谢谢
【问题讨论】:
-
您在帖子中使用的那个看起来不像 xpath。试试这个
=IMPORTXML("https://sa.investing.com/equities/saudi-arabia","//*[@id='filter_fundamental']/text()") -
请提供足够的代码,以便其他人更好地理解或重现问题。
标签: web-scraping google-sheets