pup
HTML parsing tool. More information: https://github.com/ericchiang/pup.
- Transform a raw HTML file into a cleaned, indented, and colored format:
cat | pup --color
- Filter HTML by element tag name:
cat | pup ''
- Filter HTML by ID:
cat | pup ''
- Filter HTML by attribute value:
cat | pup ''
- Print all text from the filtered HTML elements and their children:
cat | pup ' text{}'
- Print HTML as JSON:
cat | pup ' json{}'
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
