konachan 0.0.1

an util based on tokio & reqwest to download images from yandere/konachan by tag, date-range and ID.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let res = reqwest::get("https://bing.com").await?;
    let body = res.text().await?;
    let document = scraper::Html::parse_document(&body);
    let selector = scraper::Selector::parse("#sb_form_c").expect("fail to select element");

    for elm in document.select(&selector) {
        println!("{:?}", elm.value());
    }

    Ok(())
}