I can not seem to find any documentation on how to open Opera in incognito mode
Could anyone help me with this please?
this is the part of code i need to include to open opera , but i have no idea how to inlcude the incognito mode
`import os
import webbrowser
os.startfile(C:\\Program Files\\Opera\\launcher.exe)
webbrowser.open`
Use os
or subprocess to run the opera luncher with argument --private
somthing like this:
"C:\<path to opera folder>\Opera\launcher.exe" --private
Full code:
import subprocess
command = r'"C:\<path to opera folder>\Opera\launcher.exe" --private'
subprocess.Popen(command)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.