html-xml-utils

Tools for manipulating HTML and XML files from the command line

brewmacoslinux
Try with needOr install directly
Source

About

Tools for manipulating HTML and XML files

Commands

hxselecthxwlshxremovehxprunehxnormalizehxnumhxnamehxmkbibhxincludehxindexhxpipehxunpipehxtochxcopyhxclean

Examples

Extract all text content from an HTML file$ hxselect -c 'body' < input.html
Pretty-print and normalize HTML/XML formatting$ hxnormalize -x input.html
Extract specific elements using CSS-like selectors$ hxselect 'a' < input.html