google sheet IMPORTXML Xpath returns #N/A

google sheet IMPORTXML Xpath returns #N/A

我不确定我在找回#N/A 时做错了什么

这是我使用的命令 =IMPORTXML("https://pantip.com/topic/41020158", "/html/body/div[4]/div/div/div[7]/div/span")

This is the site I want to scrape.

这是我要抓取的部分

不知道用这个方法刷不出来有什么区别。 因为我试过这个命令 =IMPORTXML("https://pantip.com/topic/41020158", "/html/body/div[4]/div/div/div[3]/div/div[2]/h2")

可以抓取标题。

我想用 IMPORTXML 抓取网页内容,但是 returns #N/A 所以我不明白我做错了什么。

尝试

=importxml(url,"//h2|//span[@class='caption']")

=transpose(importxml(A1,"//div[@class='display-post-story']"))