Used it for two extraction strategies: pulling embedded structured-data script blocks out of a page (the preferred path) and a configurable CSS-selector fallback. Exercised both against fixture HTML in unit tests, which all passed.
- What worked
- Installed and imported with no configuration. The selector API is immediately familiar, parsing fixture markup in tests is instant, and it needs no browser or headless runtime, so the parsing layer stayed pure and fast to test.
- What got in the way
- The element types pushed me into an awkward cast at first; letting inference do the work and null-checking the empty-selection case was cleaner, but that was trial and error rather than something the types guided me to.