You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Somewhat related to #129, I'm curious if there's a way to filter a selector list using some manual predicate instead of doing a destructive removal as #129 is going for.
Assume is_good_node is more complex than the example above as I realize that particular predicate could be represented as an XPATH expression.
I've tried this approach and it doesn't work (ends up adding filtered nodes to the original document). Had a look at the source and didn't see an obvious way to do it with my limited lxml foo.
The text was updated successfully, but these errors were encountered:
Somewhat related to #129, I'm curious if there's a way to filter a selector list using some manual predicate instead of doing a destructive removal as #129 is going for.
Something like this:
Assume
is_good_node
is more complex than the example above as I realize that particular predicate could be represented as an XPATH expression.I've tried this approach and it doesn't work (ends up adding filtered nodes to the original document). Had a look at the source and didn't see an obvious way to do it with my limited lxml foo.
The text was updated successfully, but these errors were encountered: