📜  scrapy 获取文本自定义标签 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:59.706000             🧑  作者: Mango

代码示例1
# Html example: 10/06/2020 16h56

getData = response.xpath("//span[@property='rnews:datePublished']/text()").get()

# Output: '10/06/2020 16h56'