I made a grep-like tool for extracting HTML fragments using CSS selectors
github.com