how to open local html file in python

Solutions on MaxInterview for how to open local html file in python by the best coders in the world

showing results for - "how to open local html file in python"
Rodrigo
01 Jul 2018
1import codecs
2file = codecs.open("sample.html", "r", "utf-8")
3print(file.read())