[Python] How to bypass "[website] wants to download multiple files" prompt in chrome -...

Discussão em 'Python' iniciado por Stack, Junho 3, 2025.

  1. Stack

    Stack Membro Participativo

    As the title says, I am trying to download multiple files from a website as part of a scraping task. Problem is, chrome throws up a "[website] wants to download multiple files allow/deny" prompt, and as a result, only a fraction of the files actually get downloaded.

    I have tried multiple things to get around this issue, and none have worked so far. Lots of previous answers have suggested setting webdriver settings, but this hasn't worked for me so far.

    # Set Webdriver Options
    chrome_options = Options()
    chrome_options.add_experimental_option("prefs", {
    "download.prompt_for_download": False,
    "safebrowsing.enabled": True
    })

    # Initialize webdriver
    driver = webdriver.Chrome(options=chrome_options)

    Continue reading...

Compartilhe esta Página