Answers for "how to open chrome in python"

0

launch google chrome using python

import webbrowser

url = 'https://meet.google.com/rhj-yyzz-com'
webbrowser.register('chrome',
	None,
	webbrowser.BackgroundBrowser("C://Program Files (x86)//Google//Chrome//Application//chrome.exe"))
webbrowser.get('chrome').open(url)
Posted by: Guest on July-03-2021
0

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))
Posted by: Guest on January-01-2021

Code answers related to "how to open chrome in python"

Python Answers by Framework

Browse Popular Code Answers by Language