from pathlib import Path p=Path('/mnt/data/index.html') s=p.read_text() import re url=re.search(r'const supabaseUrl = "([^"]+)"',s).group(1) key=re.search(r'const supabaseKey = "([^"]+)"',s).group(1) out=Path('/mnt/data/new-wave-complete-index.html') html=r''' New Wave | Your Music. Your People.

NEW WAVE

Your Music. Your People. Your Wave.

Share your music, discover independent artists and find your next collaborator.

''' html=html.replace('__SUPABASE_URL__',url).replace('__SUPABASE_KEY__',key) out.write_text(html) print(out, len(html), 'bytes')