# htmlq - jq for HTML

> Clean Markdown view of GeekNews topic #4973. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=4973](https://news.hada.io/topic?id=4973)
- GeekNews Markdown: [https://news.hada.io/topic/4973.md](https://news.hada.io/topic/4973.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2021-09-08T09:46:00+09:00
- Updated: 2021-09-08T09:46:00+09:00
- Original source: [github.com](https://github.com/mgdm/htmlq)
- Points: 8
- Comments: 1

## Topic Body

- CSS 셀렉터를 이용해서 HTML 파일에서 내용을 추출 하는 CLI 도구

- Rust 오픈소스

> curl URL | htmlq '#get-help'  // ID로 찾기

> htmlq --attribute href a // 모든 링크 추출

> htmlq --text .main // 텍스트 추출

## Comments



### Comment 6721

- Author: xguru
- Created: 2021-09-08T09:46:39+09:00
- Points: 2

- jq - "sed/awk for JSON" https://stedolan.github.io/jq/

- SQ - "jq for relational data" https://news.hada.io/topic?id=3841

- Modern Unix - 유닉스 명령들의 최신 대체제 https://news.hada.io/topic?id=4784
