【发布时间】:2023-01-25 22:31:58
【问题描述】:
我全部,你能帮我用正确的 XPath 来选择标签中包含的标题“Quotes to Scrape”的文本,它在标签内,在以下网页 https://quotes.toscrape.com/ 上? 我需要在 google 表格中的 xmlimport 函数上使用这个 xpath,但我不确定 xpath 是否正确 =IMPORTHTML("https://quotes.toscrape.com/","//div[@class='col-md-8']/h1/a") 但我在 google 表格中有错误
我期待在 /h1/a 中获取文本
【问题讨论】:
-
看起来像一个错字,
=IMPORTXML("http://quotes.toscrape.com/","//div[@class='col-md-8']/h1/a")工作正常。
标签: google-sheets web-scraping