fname
from lxml import etree
import requests
def getHtml(html):
novelcontent = requests.get(html).content
return etree.HTML(novelcontent)
source = getHtml("http://www.cabintu.com")
urllist = source.xpath('//li[@class="airline"]/a')
for i in urllist:
url = i.attrib['href']
sources = getHtml(url)
fname = sources.xpath('//div[@class="maincontentairlines"]/h5/text()')
for g in fname:
print g