Zapisz zupę jak html

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