how to open link in web browser python code example Example: python open link in browser import webbrowser webbrowser.open_new('http://www.facebook.com')