capricorn 0.1.93

Parse html according to configuration
Documentation
1
2
3
4
5
6
7
8
9
10
11
use capricorn::parse;
use quicli::prelude::*;
#[test]
fn test_each() -> Result<(), Box<dyn std::error::Error>> {
    let yml = read_file("./test_pages/each.yml").unwrap();
    let params: parse::HashMapSelectParams = serde_yaml::from_str(&yml).unwrap();
    let html = read_file("./test_pages/each.html").unwrap();
    let r = parse::parse_html(&params, &html);
    println!("{:?}", r);
    Ok(())
}