The following code opens all the pages in a single browser, in tabs, in one go.
i would like to have it incognito. here is my working code:
what am i missing?
i would like to have it incognito. here is my working code:
import webbrowser # URL list webbrowser.open("https://edition.cnn.com/", new=0) webbrowser.open('https://www.yahoo.com/, new=2) webbrowser.open('https://www.bloomberg.com', new=2) webbrowser.open("https://www.iefimerida.gr", new=2) webbrowser.open('https://slashdot.org/', new=2) webbrowser.open('https://www.python.org/', new=2) webbrowser.open('http://youtube.com', new=2) # Windows path chrome_path = r"c:\Program Files\Google\Chrome\Application\chrome.exe" # Register the browser webbrowser.register('chrome', None, webbrowser.BackgroundBrowser(chrome_path)) # Call it webbrowser.get('chrome').open(url)i have tried to add to the --incognito after the chrome.exe
# Windows path chrome_path = r"c:\Program Files\Google\Chrome\Application\chrome.exe" %s --incognito"without success.
what am i missing?