open webbrowser 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 change web browser in python
import webbrowser as wb
wb.register('chrome', None)
wb.open("https://www.google.com/")