I'm trying to open the broswer and search some urls with the module webbroswer of python,
This is my code
import webbrowser
b = webbrowser.get('firefox')
b.open('google.com')
b.open('stackoverflow.com', new=0)
This code works but it opens the urls in two different tabs, i want that it searchs before for google.com and after in the same tab it has to search for stackoverflow.com. I read in the docs that for open a new thab the new parameter has to be set equal to 2 but it is 0 now, why it keeps opening new tabs?
new=0means the website is opened in the same browser window. It doesn't mean it's opened in the same tab.