Answers for "how to open a new incognito browser with webbrowser python"

2

python open url in incognito

import webbrowser

url = 'www.google.com'
chrome_path = 'C:/Program Files (x86)/Google/Chrome/Application/chrome.exe %s --incognito'

webbrowser.get(chrome_path).open_new(url)
Posted by: Guest on September-01-2020
1

how to change web browser in python

import webbrowser as wb
wb.register('chrome', None)
wb.open("https://www.google.com/")
Posted by: Guest on June-19-2020

Code answers related to "how to open a new incognito browser with webbrowser python"

Python Answers by Framework

Browse Popular Code Answers by Language