[Python] How to run headless Chrome with Selenium in Python?

Discussão em 'Python' iniciado por Stack, Março 30, 2025.

  1. Stack

    Stack Membro Participativo

    I'm trying some stuff out with selenium, and I really want my script to run quickly.

    I thought that running my script with headless Chrome would make it faster.

    First, is that assumption correct, or does it not matter if I run my script with a headless driver?

    I want headless Chrome to work, but somehow it isn't working correctly. I tried different things, and most suggested that it would work as said here in the October update:

    How to configure ChromeDriver to initiate Chrome browser in Headless mode through Selenium?

    But when I tried that, I saw weird console output, and it still doesn't seem to work.

    Any tips appreciated.

    Continue reading...

Compartilhe esta Página