A favicon scraper that isn't overengineered
Find a file
2025-02-02 23:20:20 +01:00
src Add an example to the readme and test it 2025-02-02 23:19:30 +01:00
.gitignore It works 2025-01-31 23:52:51 +01:00
Cargo.lock Bump version 2025-02-02 23:20:20 +01:00
Cargo.toml Bump version 2025-02-02 23:20:20 +01:00
README.md Add an example to the readme and test it 2025-02-02 23:19:30 +01:00

favicon-scraper

Scrapes favicons from websites. Does not particularly care for 100% optimal performance, it just needs to work.

To get started, try the scrape function:

use favicon_scraper::{scrape, Icon};

let icons: Vec<Icon> = scrape("https://google.com").await.unwrap();

// Should find something like "https://www.google.com/favicon.ico"
println!("Google's icon can be found at {}", icons[0].url);