python beautifulsoup write to file

47

python beautifulsoup write to file -

with open("output1.html", "w", encoding='utf-8') as file:
    file.write(str(soup))

Comments

Submit
0 Comments