python open browser to url code example
Example 1: python open link in browser
import webbrowser
webbrowser.open_new('http://www.facebook.com')
Example 2: 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 3: python webbrowser module
python -m webbrowser -t "http://www.python.org"