I am trying to extract text content from a XPath expression using the following code:
page = requests.get('https://www.momondo.com/flight-search/PHL-VCE/2019-06-19-flexible/2019-06-25-flexible?sort=price_a')
tree = html.fromstring(page.content)
price = tree.xpath('//span[@class="title price"]/text()')
print(price)
However, the printed result is just: []
Is there something I am doing wrong?