for l in d.items('nl,de,en'):
if l.tag()=='nl':
dothis()
How can I find the tag associated with a pyquery object? The method tag() in the exaple above doesnt exist...
for l in d.items('nl,de,en'):
if l.tag()=='nl':
dothis()
How can I find the tag associated with a pyquery object? The method tag() in the exaple above doesnt exist...
The right way to get the tag name is with is_()
function.
for l in d.items('nl,de,en'):
if l.is_('nl')
dothis()
from the docs: https://pythonhosted.org/pyquery/modules/pyquery/pyquery.html#PyQuery.is
Hope it helped.