Minimalistic HTML parser with CSS selectors
The project has been inspired by Mojo::DOM.
Add the following lines to your Cargo.toml
file:
toml
[dependencies]
victoria-dom = "0.1"
and this to your crate root:
rust
extern crate victoria_dom;
```rust extern crate victoria_dom;
use victoria_dom::DOM;
fn main() { let html = r#"
assert_eq!(dom.at("html").unwrap().text_all(), "Hello, Rust");
assert_eq!(dom.at("div#main > a").unwrap().attr("alt").unwrap(), "The Rust Programing Language");
} ```
https://docs.rs/victoria-dom