Answers for "scrapy get text custom tags"

0

scrapy get text custom tags

# Html example: <span property="rnews:datePublished">10/06/2020 16h56</span>

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

# Output: '10/06/2020 16h56'
Posted by: Guest on June-16-2020

Python Answers by Framework

Browse Popular Code Answers by Language