What is the difference between
{
quote = response.css(“div.quote”)[0]
In [31]: title = quote.css(‘span.text::text’).get()
In [32]: print(title)
}
AND
{
quote = response.css(“div.quote”).get()
In [31]: title = quote.css(‘span.text::text’).get()
In [32]: print(title)
}
Why does the second code not work ?
What does get()/getall() attribute actually return ?
This error was encountered in video lecture too but no explanation was given.