sauce-api

A simple-to-use async API for finding the source of an image.

Best used with Tokio, but async-std should work too.

Supported Sources

If you wish to see more, please submit PRs or a request in an issue!

Usage

IQDB

```rust use sauce_api::prelude::*;

async fn findsource(url: &str) { let res: Result = IQDB::checksauce(url).await; // Can take some time as IQDB is a bit slow.

match res {
    Ok(result) => {
        println!("Found results! {:?}", result);
    }
    Err(e) => {
        eprintln!("Unable to find results: {}", e);
    }
}

} ```

SauceNao

```rust use sauce_api::prelude::*;

// NOTE: Requires that SAUCENAO_API_KEY is set in environment variables. // Am looking for a neat way around that. async fn findsource(url: &str) { let res: Result = SauceNao::checksauce(url).await;

match res {
    Ok(result) => {
        println!("Found results! {:?}", result);
    }
    Err(e) => {
        eprintln!("Unable to find results: {}", e);
    }
}

} ```