Python BeautifulSoup écrivez dans le fichier
with open("output1.html", "w", encoding='utf-8') as file:
file.write(str(soup))
Dark Dog
with open("output1.html", "w", encoding='utf-8') as file:
file.write(str(soup))