News for hackers. Stuff that matters.
Re:Xee: A Modern XPath and XSLT Engine in Rust by mdaniel on Friday March 28, 2025 @10:13PM (#43512128)
don't overlook the ability to mix and match them, because each "axis" is good at its own things

  response.xpath("//div[string-contains(@data-foo, "foo")").css(".some-class").re(r"[a-z][a-zA-Z]+")
The .css() flavor gets complied down into .xpath() but there is no contest about their expressivity: https://github.com/scrapy/parsel/blob/v1.9.1/parsel/csstrans...

There are no comments on this comment yet.