Herman Nz
8
Q:

how to open local html file in python

import codecs
file = codecs.open("sample.html", "r", "utf-8")
print(file.read())
0

New to Communities?

Join the community