Generalize page_parser for domains