readability-fork 0.2.2

Temporary fork of 'readability' crate with updated dependencies
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use readability_fork;
use std::fs::File;
use url::Url;

#[test]
fn test_extract_title() {
    assert!(true);
    let mut file = File::open("./data/title.html").unwrap();
    let url = Url::parse("https://example.com").unwrap();
    let product = readability_fork::extractor::extract(&mut file, &url).unwrap();
    assert_eq!(product.title, "This is title");
}