bing-image-scrapper 0.1.0

A simple utility to scrape image URLs from Bing search results.
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 59.05 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.97 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 1m 19s Average build duration of successful builds.
  • all releases: 1m 19s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • adhil72

bing-image-scrapper

A simple Rust utility to scrape image URLs from Bing search results.

Installation

cargo install bing-image-scrapper

Usage

CLI

By default, the program searches for "apple":

bing-image-scrapper

You can also specify a search query as a command-line argument:

bing-image-scrapper "your search query"

Library

Add this to your Cargo.toml:

[dependencies]
bing-image-scrapper = "0.1.0"

Then use it in your code:

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let urls = bing_image_scrapper::scrape_bing_images("apple").await?;
    for url in urls {
        println!("{}", url);
    }
    Ok(())
}

License

This project is licensed under the MIT License.