anime_grubber/lib.rs
1//! Convenient library for extracting images of cute (or not so cute) characters from websites.
2//!
3//! You can start with
4//! ```
5//! use anime_grubber::{agents::waifu_pics::{Waifu, Categories, SFW}, agent::Agent};
6//!
7//! #[tokio::main]
8//! async fn main() {
9//! let instance = Waifu::new(Categories::SFW(SFW::Dance));
10//! let image = instance.get().await.expect("shit happends");
11//! println!("Fetched image URL: {}", image);
12//! }
13//! ```
14//!
15/// A trait for image retrieval agents.
16pub mod agent;
17pub mod agents;
18/// pub errors of this crate
19pub mod error;
20pub mod gen_enum;
21pub mod gen_url;
22pub mod result;
23pub use crate::{agent::Agent, agents::*, error::Error, result::Result};