import urllib.request
import re

url = "https://charity-boat-race.base44.app/"
req = urllib.request.Request(url, headers={'User-Agent': 'Mozilla/5.0'})
try:
    with urllib.request.urlopen(req) as response:
        html = response.read().decode('utf-8')
        
        # look for google fonts link
        match = re.findall(r'href="https://fonts.googleapis.com[^"]+"', html)
        if match:
            print("FONTS:", match)
            
        # check CSS
        css_url = re.search(r'href="(/assets/[^"]+\.css)"', html)
        if css_url:
            css_url = "https://charity-boat-race.base44.app" + css_url.group(1)
            req_css = urllib.request.Request(css_url, headers={'User-Agent': 'Mozilla/5.0'})
            with urllib.request.urlopen(req_css) as response_css:
                css = response_css.read().decode('utf-8')
                match_ff = re.findall(r'font-family:[^;}]+', css)
                print("CSS FONT FAMILIES:", set(match_ff[:10])) # Just print a few unique ones
except Exception as e:
    print(f"Error: {e}")
