Sparen Sie Suppe als HTML

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