how to open local html file in python
import codecs
file = codecs.open("sample.html", "r", "utf-8")
print(file.read())
how to open local html file in python
import codecs
file = codecs.open("sample.html", "r", "utf-8")
print(file.read())
how to make html files open in chrome using python
// Also, use the absolute path of the file:
webbrowser.open('file://' + os.path.realpath(filename))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us