import requests
import re

url = "https://www.ysenra.fr/"
html = requests.get(url).text

print("Searching 48s in HTML...")
if "48s" in html:
    print("Found 48s in HTML directly!")
    for line in html.splitlines():
        if "48s" in line:
            print("  ", line[:120])
else:
    print("Not in HTML directly.")

css_links = re.findall(r'href=[\"\']([^\"\']+\.css[^\"\']*)[\"\']', html)
for href in set(css_links):
    full_url = "https:" + href if href.startswith("//") else ("https://www.ysenra.fr" + href if href.startswith("/") else href)
    try:
        css = requests.get(full_url, timeout=10).text
        if "48s" in css:
            print(f"Found 48s in {href}")
            for m in re.finditer(r"[^\n;{}]{0,50}48s[^\n;{}]{0,50}", css):
                print("  match:", m.group(0))
    except Exception as e:
        print(f"Error {href}: {e}")
