I am trying to grab values from a web page. My python code currently looks like this...
from lxml import html
import requests
if __name__ == "__main__":
page = requests.get('https://www.example.com/example')
tree = html.fromstring(page.content)
print(tree.xpath('//div[@class="previous-crashes"]/text()'))
Here is an example of the html I am trying to get. So, in theory, I want a list that contains 12.54x, 5x, 1.06x, 12.54x, 1.93x. With the current code it always prints an empty list.