An efficient website icon scraper for rust or command line usage.
<img>
using a weighing system<svg>
to them)```bash cargo install site_icons
site-icons https://github.com
```
```rust use site_icons::Icons;
let 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) } ```
/favicon.ico
)icons
field<img>
tags on the page, directly inside the header OR with a src|alt|class
containing the text "logo"Install cargo make and then:
bash
cargo make run https://github.com