lol-html

Low latency HTML parser/rewriter with CSS selector API

brewmacoslinux
Try with needOr install directly
Source

About

Low output latency streaming HTML parser/rewriter with CSS selector-based API

Commands

lol-html

Examples

Parse and rewrite HTML by selecting elements with CSS selectors$ lol-html --selector 'div.content' --rewrite '<span>Modified</span>'
Stream process large HTML files with minimal memory overhead$ cat large-file.html | lol-html --selector 'img' --attribute 'src' 'new-cdn-url'
Remove specific HTML elements matching a selector$ lol-html --selector 'script' --remove < input.html > output.html