from pathlib import Path import base64, html, zipfile logo_path = Path("/mnt/data/a_clean_white_background_logo_graphic_design._over.png") if not logo_path.exists(): # Fallback to the most recent generated logo if the earlier filename is unavailable. candidates = list(Path("/mnt/data").glob("*.png")) candidates = [p for p in candidates if p.is_file()] logo_path = candidates[-1] if candidates else None logo_data = "" logo_mime = "image/png" if logo_path and logo_path.exists(): logo_data = base64.b64encode(logo_path.read_bytes()).decode("ascii") logo_src = f"data:{logo_mime};base64,{logo_data}" if logo_data else "" page = f""" Chahat Holidays | Coming Soon
{f'Chahat Holidays Logo' if logo_src else '
Chahat Holidays
'}
Something exciting is coming

We’re Going Places.

Your next unforgettable journey is almost here. Chahat Holidays is preparing a fresh travel experience filled with amazing destinations, exciting tour packages and happy memories.

TRAVEL  •  EXPLORE  •  MEMORIES
00Days
00Hours
00Minutes
00Seconds
📞 Call 94259 02658
www.chahatholidays.in   •   @chahatholidays
310, Nariman Point, 3rd Floor 96, Maharani Road, Indore (M.P.), India
""" out = Path("/mnt/data/chahat-holidays-coming-soon.html") out.write_text(page, encoding="utf-8") zip_path = Path("/mnt/data/chahat-holidays-coming-soon.zip") with zipfile.ZipFile(zip_path, "w", zipfile.ZIP_DEFLATED) as z: z.write(out, arcname="index.html") print(f"Created: {out}") print(f"ZIP: {zip_path}")