2 unstable releases
0.2.0 | May 28, 2022 |
---|---|
0.1.0 | May 18, 2022 |
#20 in #html-text
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–10MB
~106K SLoC