Internal Service — This is not an HTTP endpoint. It’s called by the competitor research service.
Purpose
Adds favicon URLs to each competitor using Google’s favicon service. Filters out generic globe icons.Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
competitors | list | List of competitor dicts (modified in place) |
How It Works
- For each competitor, construct Google favicon URL
- Download the favicon and compute MD5 hash
- Compare against known “generic globe” hash
- If generic, set
favicon_urlto empty string - If real favicon, keep the URL