Try:
tree.xpath("//*[@class='index__stars__2ads4 index__large__1Ez3-']/@data-score")
Get the attributes value with xPath
|
|
Messages In This Thread |
Get the attributes value with xPath - by vulturas - May-22-2022, 05:28 PM
RE: Get the attributes value with xPath - by snippsat - May-22-2022, 07:31 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
need help with xpath | pythonprogrammer | 1 | 2,881 |
Jan-18-2020, 11:28 PM Last Post: snippsat |