[Python] Using Python, how to continue opening new URLs in a specific Edge window even if...

Discussão em 'Python' iniciado por Stack, Agosto 9, 2025.

  1. Stack

    Stack Membro Participativo

    Using this default model, if I separate one of these URLs in a new window and use it for reading, the next URL open will open in the window I've separated for reading, obviously hindering my reading.

    Is there a way to set a specific window as the primary one that will open all new tabs, and the ones I separate will remain intact even when they're in the foreground?

    1 → I can't use automated browsers because the sites use automated bans.

    2 → These sites require a login and password, and I want to keep all of this saved only in my browser profile.

    3 → I can't risk losing my account due to a ban, so I'm looking for an option that only actually affects window selection and URL opening.

    import webbrowser
    import time

    urls = [
    "https://www.example.com",
    "https://www.python.org",
    "https://www.github.com"
    ]

    while True:
    for url in urls:
    webbrowser.open(url)
    time.sleep(3)

    Continue reading...

Compartilhe esta Página