jq yq for html

C++
Install xq command for parsing xml files outputs:
pip install xqInstall pup command for structuring in html format outputs into lines:
brew install pup
Then you can use pup command to split, parse or wrap html outputs:
cat file.html | pup #html is parsed into an optimally visible format
cat file.html | pup 'span#See_also' #filters span tags with See_also id
Source

Also in C++: