# buongiornissimo-rs
~ Scrapes for the best Italian boomer flavoured images ~
Developed by @veeso
Current version: 0.2.1 (23/05/2023)
--- - [buongiornissimo-rs](#buongiornissimo-rs) - [About buongiornissimo-rs π·](#about-buongiornissimo-rs-) - [Features π](#features-) - [Get started π](#get-started-) - [Add buongiornissimo-rs to your Cargo.toml π¦](#add-buongiornissimo-rs-to-your-cargotoml-) - [Scrape for buongiornissimo β](#scrape-for-buongiornissimo-) - [Examples π](#examples-) - [Documentation π](#documentation-) - [Support the developer β](#support-the-developer-) - [Contributing and issues π€π»](#contributing-and-issues-) - [Changelog β³](#changelog-) - [License π](#license-) --- ## About buongiornissimo-rs π· Buongiornissimo-rs is a Rust library to scrape for Buongiornissimo caffΓ¨ Italian boomer flavoured images from a Rust application. It supports different buongiornissimo providers to scrape the images from. It supports many kind of "greetings", such as the classic "buongiornissimo", but also the holiday-based greetings, like "natale", "sacro cuore di GesΓΉ" and "GiovedΓ¬ grasso". Everthing is provided through a simple and totally async API. ## Features π - Different providers to prevent api outages and to differentiate the contents. - Support for different kind of greetings based on the current date - Utilities functions to retrieve the moveable feasts date (such as Easter, Carnival, Corpus domini...). *requires the `moveable-feasts` feature* - A super comfy function `greeting_of_the_day()` to retrieve the best greeting for the day --- ## Get started π ### Add buongiornissimo-rs to your Cargo.toml π¦ ```toml buongiornissimo-rs = "^0.2.0" ``` Supported features are: - `no-log`: disable logging - `moveable-feasts` (*default*): enable getters for moveable feasts ### Scrape for buongiornissimo β ```rust use buongiornissimo_rs::{IlMondoDiGrazia, Scrape}; use chrono::Local; #[tokio::main] async fn main() -> anyhow::Result<()> { let motd = buongiornissimo_rs::greeting_of_the_day(Local::today().naive_local(), true); let urls = IlMondoDiGrazia::default().scrape(motd).await?; // Do whatever you want with the scraped images... Ok(()) } ``` Currently these providers are supported: - BuongiornissimoCaffe