What do you want to save?
Add Code snippet
New code examples
-
Python 2022-03-27 07:10:06
scrapy get inside attribute value
#Given <time datetime="2020-09-01T11:48:24-03:00" itemprop="datePublished">a given text</time> # to get the attribute value datetime: getData = response.css('time::attr(datetime)').get() # output '2020-09-01T11:48:24-03:00' Add solution
Best helpers
Rory Becker
+5
Zipirovich
+5
Ian Elliott
+5
Shivji
+5
Gogehat
+5
Jkdev
+5
Ila46
+5
Deedee
+5
TheShade
+5
Alex Kazan
+5
Shamyaprasa
+5
Ann Shaw
+5
Jerry W.
+5
Skippy
+5
Anmol
+5
Phil Lello
+5
Noein
+5