I am trying to web scrape the dollar sign rating for each restaurant on a food delivery website, however, there is no available xpath.
<!-- react-text: 2108 -->
"$$"
<!-- /react-text -->
The above code is what is used for the dollar ratings from when I inspected the website. I've tried using the line directly above:
<i class="icon-bullet--small">·</i>
However, this outputs the period since it is not for the dollar rating. I've also tried using:
cost = ['//li[{}]/a/div[2]/p[2]/!'.format(x) for x in range(1, 999)]
as well as using "!--" and "react" and "react-text" in the xpath, but none of it works. Any suggestions on how to approach this?