Expand description
Convenient library for extracting images of cute (or not so cute) characters from websites.
You can start with
use anime_grubber::{agents::waifu_pics::{Waifu, Categories, SFW}, agent::Agent};
#[tokio::main]
async fn main() {
let instance = Waifu::new(Categories::SFW(SFW::Dance));
let image = instance.get().await.expect("shit happends");
println!("Fetched image URL: {}", image);
}Re-exports§
pub use crate::agent::Agent;pub use crate::error::Error;pub use crate::result::Result;pub use crate::agents::*;
Modules§
- agent
- A trait for image retrieval agents.
- agents
- List of avaiable agents
- error
- pub errors of this crate
- gen_
enum - gen_url
- result