import webbrowser urL='https://drive.google.com' firefox_path="C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe" webbrowser.register('firefox', None,webbrowser.BackgroundBrowser(firefox_path)) webbrowser.get('firefox').open_new_tab(urL)