web-grep

What this

```bash

List up all

-innerHTML

$ echo "

hoge

fuga

xxx

" | web-grep "

{}

" hoge fuga xxx

List up href of with class box and which contains <span>date</span>

$ echo '

date | web-grep 'date' url1 ```

How this

This is just a CLI for tanakh/easy-scraper.

Usage

$ web-grep <query>

The query is HTML pattern. Patterns like

```html

{}

``` ```html

{}

```

web-grep outputs all text for {}.

(Note: the original library easy-scraper use {{xxx}} for placeholders, but this CLI use only {})

Build

Get cargo then,

```bash cargo build --release

cp target/release/web-grep /your/local/path/bin/ ```

or use make install.