from pathlib import Path
import requests

url = "https://leluhur.com/"
headers = {"User-Agent": "Mozilla/5.0"}

response = requests.get(url, headers=headers, timeout=30)
response.raise_for_status()

out = Path("leluhur_com_homepage.html")
out.write_bytes(response.content)
print(f"Saved: {out.resolve()}")
print(f"Status: {response.status_code}")
print(f"Content-Type: {response.headers.get('content-type')}")
print(f"Bytes: {len(response.content)}")
