i want to parse this Xpath query with lxml in python.
.//*[@id='content_top']/article/div/table/tbody/tr[5]/td/p/text()
I checked the xpath query in Firepath (the firebug extension for xpath),and it works,but my python code show me nothing. Here's the source.
from lxml import html
import requests
page = requests.get("http://www.scienzeetecnologie.uniparthenope.it/avvisi.html")
tree = html.fromstring(page.text)
avvisi = tree.xpath(".//*[@id='content_top']/article/div/table/tbody/tr[5]/td/p/text()")
print(avvisi)
The output is a "[]"
.