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::SiteIcons;
let mut icons = SiteIcons::new(); // scrape the icons from a url let entries = icons.load_website("https://github.com", false).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