I have tried to understand the process to using lxml to pull the text trying simple python program
from lxml import html
import requests
page = requests.get('http://www.foo bar')
tree = html.fromstring(page.content)
name = tree.xpath('//*[@id="yui_3_17_2_1_1487276887950_2408"]/div[@class="locu-menu-item-name"]/text')
print(name)
results in []
values for a nested tag, the xpath is: //*[@id="yui_3_17_2_1_1487276887950_103789"]/div[1]/div[1]
the value is <div class="locu-menu-item-name">Italian Lemon Sorbetto</div>
which is nested like this
<div class="menu-item-inner">
<div class="locu-menu-item-name">Italian Lemon Sorbetto</div>
<div class="locu-menu-item-description">Dairy-free</div>
<div class="option-wrapper"></div>
<div class="locu-menu-item-price"></div>
</div>
any help would be great.