How to open multiple chrome tabs using webbrowser.get if chrome is not the default browser?

  browser, google-chrome, python, python-3.x

If the default browser is chrome or firefox it opens all the tabs at the same time as intended.

c = webbrowser.get("windows-default")
c.open("https://twitter.com/home")
c.open("https://www.youtube.com/")

But if the default browser is say firefox and I use the below code to open it in Chrome, it does not open all tabs at the same time.

c = webbrowser.get("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s")
c.open("https://twitter.com/home")
c.open("https://www.youtube.com/")

It opens YouTube only if I close twitter. So how do I open multiple tabs at the same time in Chrome if my default browser is Firefox

Source: Python Questions

LEAVE A COMMENT