Use xpath to find the meta
tag by name
attribute and get the value of content
attribute:
from lxml.html import fromstring
html_data = """ <meta content="auth" name="param" />
<meta content="I_WANT_THIS" name="token" />"""
tree = fromstring(html_data)
print tree.xpath('//meta[@name="token"]/@content')
prints:
['I_WANT_THIS']