2025-01-31 23:52:51 +01:00
|
|
|
# favicon-scraper
|
|
|
|
|
2025-02-02 23:19:30 +01:00
|
|
|
Scrapes favicons from websites. Does not particularly care for 100% optimal
|
|
|
|
performance, it just needs to work.
|
2025-01-31 23:52:51 +01:00
|
|
|
|
2025-02-02 23:19:30 +01:00
|
|
|
To get started, try the `scrape` function:
|
|
|
|
|
|
|
|
```rust
|
|
|
|
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);
|
|
|
|
```
|