Simpan sup sebagai html

with open("output1.html", "w") as file:
    file.write(str(soup))
Fair Fowl