An open API service indexing awesome lists of open source software.

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.

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**
-
-