compass.utilities.url.normalize_domain#

normalize_domain(url)[source]#

Return a comparable domain string for a URL or empty string

Parameters:

url (str) – URL string to extract the domain from.

Returns:

str – Normalized domain string, lowercased and without www prefix.