Python Forum
webbrowser open multiple sites incognito
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
webbrowser open multiple sites incognito
#4
Here i working test,had to use subprocess to get incognito to work.
import subprocess

chrome_path = r"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
url_list = [
    "https://python-forum.io/",
    "https://www.python.org/"
]
args = [chrome_path, '--incognito'] + url_list
try:
    subprocess.Popen(args)
except Exception as e:
    print(f"An error occurred: {e}")
atsitras likes this post
Reply


Messages In This Thread
RE: webbrowser open multiple sites incognito - by snippsat - Oct-18-2024, 03:45 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020