#icons #tries #image #standards #url #link #extract

bin+lib website-icon-extract

extract favicon link paths from a html page from different standards

10 releases

0.5.3 Jan 14, 2024
0.5.2 Oct 7, 2022
0.5.0 Oct 23, 2021
0.4.2 Mar 27, 2021
0.3.0 May 19, 2018

#17 in #tries


Used in 2 crates

MIT license

14KB
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–20MB
~237K SLoC