https://github.com/zach-klippenstein/jfavicon
JFavicon is a simple library for finding the URLs of favicons.
https://github.com/zach-klippenstein/jfavicon
Last synced: about 1 month ago
JSON representation
JFavicon is a simple library for finding the URLs of favicons.
- Host: GitHub
- URL: https://github.com/zach-klippenstein/jfavicon
- Owner: zach-klippenstein
- License: apache-2.0
- Created: 2015-01-25T08:37:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-25T09:15:48.000Z (over 10 years ago)
- Last Synced: 2025-01-29T08:11:52.217Z (3 months ago)
- Language: Java
- Homepage: http://www.zachklipp.com/jfavicon
- Size: 234 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# JFavicon [](https://travis-ci.org/zach-klippenstein/jfavicon)
JFavicon is a simple library for finding the URLs of [favicons](http://en.wikipedia.org/wiki/Favicon).
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 favicons) {
for (URL fav : favicons) {
System.out.println(fav);
}
}
});