Сохраните суп как HTML

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