readah 0.1.3

Key component of Readability module extracted from https://gitlab.com/news-flash/article_scraper.
1
2
3
4
5
6
7
8
9
10
11
12
use readah::readability::helper::*;
use std::env;
#[tokio::main]
async fn main() {
    // let url = "https://example.com/";
    let args: Vec<String> = env::args().collect();
    let url = args.into_iter().nth(1).unwrap();

    if let Ok(text) = text_to_use(&url).await {
        println!("{:?}", text);
    }
}