#icons #standards #link #extract #page #favicon #pixel

bin+lib website-icon-extract

extract favicon link paths from a html page from different standards

12 releases

new 0.5.5 Mar 15, 2025
0.5.3 Jan 14, 2024
0.5.2 Oct 7, 2022
0.5.0 Oct 23, 2021
0.3.0 May 19, 2018

#14 in #favicon

Download history 3/week @ 2024-12-04 14/week @ 2024-12-11 8/week @ 2024-12-18 3/week @ 2025-02-05 3/week @ 2025-02-12 238/week @ 2025-03-12

239 downloads per month
Used in 2 crates

MIT license

16KB
218 lines

THIS PROJECT MOVED TO GITLAB

https://gitlab.com/radiobrowser/libraries/website-icon-extract-rust


lib.rs:

This library connects to a given url and tries to find references to icons that represent the page. Multiple standards are used for this:

All images are converted to absolute urls and checked if connecting to them works. They get analyzed for pixel size and only the necessary bytes are downloaded for that to happen.

Example

let url = "https://google.com";
let list = ImageLink::from_website(url, "TEST", 5).unwrap();
println("{:?}", list);

Dependencies

~5–17MB
~213K SLoC