bing-image-scrapper 0.1.0

A simple utility to scrape image URLs from Bing search results.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let args: Vec<String> = std::env::args().collect();
    let query = if args.len() > 1 {
        &args[1]
    } else {
        "apple"
    };

    let urls = bing_image_scrapper::scrape_bing_images(query).await?;

    for url in urls {
        println!("{}", url);
    }

    Ok(())
}