Link Search Menu Expand Document

Python

Write BeautifulSoup output to .html file

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