parse and transform streaming html using css selectors