import requests, re
H = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0 Safari/537.36"}
r = requests.get("https://www.med.upenn.edu/mpp/tuition-and-financial-aid.html", headers=H, timeout=25)
hrefs = sorted(set(re.findall(r'href="([^"]+)"', r.text)))
for h in hrefs:
    if "/mpp/" in h:
        print(h)
