from zipfile import ZipFile from pathlib import Path # Define paths html_file_path = "/mnt/data/index.html" zip_file_path = "/mnt/data/akash_institute_website.zip" # Write the latest HTML from canvas into a file html_code = """ Akash Institute – Learn Programming, Design & Marketing

Start Learning Job-Ready Skills Today

Programming, Digital Marketing, Graphic Design, Video Editing, DSA, App Development & more

📞 Call Us: +91‑9649966179

📩 Get In Touch

Have questions? We'd love to hear from you!

📍 Find Us on Google Maps

Chat on WhatsApp
""" # Write HTML file with open(html_file_path, "w", encoding="utf-8") as f: f.write(html_code) # Create zip file with ZipFile(zip_file_path, "w") as zipf: zipf.write(html_file_path, arcname="index.html") zip_file_path