de_hypertext 0.1.4

serde_json ergonomics for parsing html
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[allow(dead_code)]
#[derive(de_hypertext::Deserialize)]
struct HasOption {
    #[de_hypertext(selector = "h3")]
    s: Option<String>,
    #[de_hypertext(selector = "a", attribute = "href")]
    v: Option<String>,
}

fn main() {
    println!("Hello world");
}