I have this in my code:
link_tag = "//div[@class= 'yuRUbf']//a/@href"
With this code I get this error
The result of the xpath expression "//div[@class= 'yuRUbf']//a/@href" is: [object Attr]. It should be an element.
I don't know any other way to scrape the URL from that div class. How can I fix this? This code works fie on the scraper chrome extension but not on python.