Crate site_icons
source · [−]Expand description
site_icons
An efficient website icon scraper.
Usage
use site_icons::Icons;
let mut icons = Icons::new();
// scrape the icons from a url
icons.load_website("https://github.com").await?;
// fetch all icons, ensuring they exist & determining size
let entries = icons.entries().await;
// entries are sorted from highest to lowest resolution
for icon in entries {
println!("{:?}", icon)
}