2 ms·
> If CSS selectors needed only a few enhancements to compete with XPath You may want to try ParslePy, it combines CSS/XPath functionality, allowing you to decl
by tycho01 9y ago
> If CSS selectors needed only a few enhancements to compete with XPath
You may want to try ParslePy, it combines CSS/XPath functionality, allowing you to declaratively specify the selector paths in a JSON file.
I just made a PR to allow YAML over JSON, but not sure if Pip picked up on it yet.
- tycho01 9y agoIt appears this is based on that cssselect library mentioned above, compiling CSS selectors to XPath. That is, performance should approximate XPath, while convenience should be higher.