https://github.com/dutchcoders/htmlq
HtmlQ will filter the html stdin using css queries.
https://github.com/dutchcoders/htmlq
Last synced: 3 months ago
JSON representation
HtmlQ will filter the html stdin using css queries.
- Host: GitHub
- URL: https://github.com/dutchcoders/htmlq
- Owner: dutchcoders
- License: mit
- Created: 2015-03-02T15:09:08.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-05T08:04:33.000Z (about 10 years ago)
- Last Synced: 2024-06-19T06:55:59.921Z (about 1 year ago)
- Language: Go
- Size: 406 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# htmlq
A querying tool for html using css selectors.
## Example
```
curl https://api.slack.com/rtm | htmlq --filter "a[class='bold block']" @href
curl https://api.slack.com/rtm | htmlq --filter img @src
curl https://api.slack.com/rtm | htmlq --filter a
```## Build
```
go build -o /usr/local/bin/htmlq main.go
```## Install using Homebrew
```
$ brew tap dutchcoders/homebrew-htmlq
$ brew install htmlq
```## Thanks
Many thanks to PuerkitoBio (https://github.com/PuerkitoBio/goquery). Without his library this tool would have been many more than the current few lines.## Contributions
Contributions are welcome.
## Creators
**Remco Verhoef**
-
-