Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'
 
PREVIOUS NEXT
Tagged: #scrapy #text #custom #tags
ADD COMMENT
Topic
Name
8+1 =