how to open a website in chrome using python code example
Example 1: python open google
#Open google in python - Windows
import webbrowser
url='https://google.com'
webbrowser.get('C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s').open(url)
Example 2: 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))
Example 3: python open google
#Open google in python - MacOSX
import os
os.system("open https://google.com")