scrapy get inside attribute value


# to get the attribute value datetime:
getData = response.css('time::attr(datetime)').get()

# output

Here is what the above code is Doing:
1. response.css() is a method that takes a CSS selector as an argument and returns a list of Selector objects.
2. The Selector object has a number of methods that allow you to extract data from the HTML.
3. The get() method returns the data as a string.