Replies: 2 comments
-
Hi @jake-yi, I believe it doesn't make any difference because the subtree is used as root and not the tree but I may be wrong, I'm going to make tests. |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, my bad, thanks for your feedback! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
There's a part that I don't understand.
That is the 538th line of "https://github.com/adbar/trafilatura/blob/master/trafilatura/core.py"
ptest = subtree.xpath(//p/text())
In this part, it is marked as
//p//text()
so It's looking for the root's p-tag rather than the subtree's p-tag.Isn't
./p//text()
the right approach?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions