#html-text #css-selectors #selector #html-css #cli-tool #tags #extracting

app cli-selector

a simple cli tool for extracting html tags based on a css selector from html text

2 unstable releases

0.2.0 May 28, 2022
0.1.0 May 18, 2022

#17 in #html-text

GPL-3.0 license

21KB
82 lines

a simple cli tool for extracting html tags based on a css selector from html text

help

cli-selector 0.1.0
a simple cli tool for extracting html tags based on a css selector from html text

USAGE:
    cli-selector [OPTIONS] <SELECTOR>

ARGS:
    <SELECTOR>

OPTIONS:
    -h, --help                     Print help information
    -i, --input <FILE>             input file ( specify "-" for stdin ) [default: -]
    -n, --inner
    -s, --separator <SEPARATOR>    separator between matching elements [default: "\n"]
    -V, --version                  Print version information

sample usage

curl https://test.com | cli-selector "div>a>p"
<p>
    some content
    <span><span>
</p>

Dependencies

~5–12MB
~113K SLoC