Extract HTML using CSS selectors in the command-line.
With a working Rust and Cargo installation, you can install select-html
from Crates.io.
cargo install select-html
Precompiled x86_64-unknown-linux-gnu
binaries are available on the Releases page.
```sh
curl -s https://example.org | select-html
--file
.select-html --file 'example.html'
select-html 'title'
select-html '.example' --text
select-html '[property^="og:"]' -a 'property' -a 'content' ```
```
USAGE:
select-html [OPTIONS]
ARGS:
OPTIONS:
-a, --attribute
Found a problem or want to request a new feature? Email me@bauke.xyz and I'll see what I can do for you.
Distributed under the AGPL-3.0-or-later license, see LICENSE for more information.