Skip to content

zach-klippenstein/jfavicon

Repository files navigation

JFavicon Build Status

JFavicon is a simple library for finding the URLs of favicons.

The correct way for a page to define its favicon is with a link element in the head. However, not all pages do this, so if there are no link elements, the root is checked for files like favicon.ico (see Source for which extensions are checked).

new FaviconLoader().getFavicons("http://www.wikipedia.com", new FaviconCallback() {
  @Override public void onFaviconsLoaded(Set<URL> favicons) {
    for (URL fav : favicons) {
      System.out.println(fav);
    }
  }
});

About

JFavicon is a simple library for finding the URLs of favicons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages