pup

Command-line HTML parsing tool. More information: https://github.com/ericchiang/pup.

cat index.html | pup --color

cat index.html | pup 'tag'

cat index.html | pup 'div#id'

cat index.html | pup 'input[type="text"]'

cat index.html | pup 'div text{}'

cat index.html | pup 'div json{}'