Hacker News new | ask | show | jobs
by hawski 693 days ago
+1 to the lol_html HTML rewriter. Basically you can give it a bunch of selectors and code that will do whatever with what is matching. It's very fast and quite nice. It has bindings to Lua and a few more, but not to Python.

https://crates.io/crates/lol_html