-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can I use it with html5ever? #73
Comments
No, but this could be interesting to investigate. I don't think it would be very easy though, as I believe (but have not verified) that the underlying access to the DOMs is not the most similar. |
Does sxd-xpath depends directly on a sxd-document object or does it depends on a trait which is implemented using sxd-document but can be re-implemented for any parser with similar access? If not, is that complicated to do so? |
Yes, basically everywhere uses a concrete I don't have an answer for "is it complicated". My gut feeling is that it would be, but sometimes the only way to find out is to just try. |
@shepmaster I needed to evaluate xpaths against html for scraping so I wrote this helper library to bridge html5ever with sxd-document. This is pretty much my first real rust code so, if you have some time, please take a look and send any feedback my way. thanks! https://github.com/carlolefou/sxd-html |
Can I use sxd-xpath with html5ever to find node in HTML document?
For example:
The text was updated successfully, but these errors were encountered: