I found an object with specific class:
THREAD = TREE.find_class(\'thread\')[0]
Now I want to get all elements that a
You can try PARENT.getchildren()
>>> root = etree.fromstring(xml) >>> root.xpath("//div[@class='thread']")[0].getchildren() [, ]