The FaviconExtractor class parses HTML and manifest files to extract favicon and app icon URLs for standard, Apple, and Android platforms.
Adds MIME types to icon URLs based on file extensions.
A list of icon URLs or objects with a url key.
url
A list of icon objects with inferred MIME types.
Fetches the page and extracts all icon URLs, including manifest-defined ones.
The full page URL to extract icons from.
A list of fully resolved absolute icon URLs.
If the page fails to fetch.
Selects the largest icon found for each unique MIME type.
List of icons with MIME types and optional sizes.
One icon per MIME type, prioritized by size.
Organizes a list of icons into platform-specific categories.
The raw list of icon URLs.
Grouped icon categories.
The FaviconExtractor class parses HTML and manifest files to extract favicon and app icon URLs for standard, Apple, and Android platforms.