open link in default browser python 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 - MacOSX
import os
os.system("open https://google.com")