【发布时间】:2020-01-03 17:50:20
【问题描述】:
示例 1. //a/@href - 从文档中的所有 a 元素中选择 href 属性的值并返回链接地址。
示例 2. //a[contains(@href, 'scrapy.org')] - 选择指向 https://scrapy.org 的 a 元素并返回文本。
有没有办法像示例 2 那样选择特定链接,但像示例 1 那样返回链接地址?
【问题讨论】:
标签: xpath google-sheets google-sheets-importxml