May-22-2022, 05:28 PM
Hello everyone,
I would like to get the value from the
The following line returns an empty list:
Greetings
I would like to get the value from the
data-score
attribute within the <span>-element.<span class="index__stars__2ads4 index__large__1Ez3-" data-fillcolor="butterscotch" data-score="2.5"></span>
The following line returns an empty list:
score = tree.xpath('//span[@class="index__stars__2ads4 index__large__1Ez3-"]//data-score/text()')What am I doing wrong here?

Greetings