9 releases

Uses old Rust 2015

0.3.4 Feb 13, 2017
0.3.3 Jan 12, 2017
0.3.2 Aug 30, 2016
0.2.1 Mar 29, 2016
0.1.1 Feb 12, 2016

#11 in #favicon

30 downloads per month

MIT license

11KB
253 lines

rust-webicon

Build Status

A library for scraping a website's icon.

Usage:

extern crate webicon;
use webicon::IconScraper;

let mut scraper = IconScraper::from_http("http://twitter.com").unwrap();
let icons = scraper.fetch_icons();

icons.at_least(128, 128);  // Return icon that is at least 128x128 pixels large
icons.largest();  // Just return the largest one.

Read more in the docs.

License

Licensed under the MIT, see LICENSE.

Dependencies

~21–31MB
~361K SLoC