Need method get all children
Hi Please add some method work with children nodes same as lxml.etree.getchildren()
Currently, I'm using requests-html but sometime I must using lxml.etree to load html from Element, after that, using etree to get children :(
Thanks so much. This is awesome project.
Hi @liking
Thanks for your suggestion:)
Is anyone willing to implement this?
i need this feature :smile:
Hi, @oldani I am willing to implement this. It would be great if you could help me out a little with the functionality
Hi Please add some method work with children nodes same as lxml.etree.getchildren()
Currently, I'm using requests-html but sometime I must using lxml.etree to load html from Element, after that, using etree to get children :(
Thanks so much. This is awesome project.
hey I would like to fix this issue. Can you tell me how should I start?
Something like this?
def children(self: BaseParser):
return [
Element(element=child, url=self.url, default_encoding=self.default_encoding)
for child in self.element.getchildren()
]