[GH-ISSUE #242] [WhoScored] Headless option doesn't seems to work #46

Closed
opened 2026-03-02 15:55:19 +03:00 by kerem · 1 comment
Owner

Originally created by @clairesecehDS on GitHub (May 16, 2023).
Original GitHub issue: https://github.com/probberechts/soccerdata/issues/242

Hi Pieter and thanks for this repo very useful!

I'm trying to run it in a Docker image, and I want to enable the headless mode.

I have this error:
The ChromeDriver was unable to initiate/spawn a new WebBrowser. You will not be able to scrape new data. Message: unknown error: cannot connect to chrome at 127.0.0.1:53487 from unknown error: unable to discover open pages

The WhoScored function is perfectly functional without the headless mode.

Do you have any idea on how to run it in a Docker image?

Originally created by @clairesecehDS on GitHub (May 16, 2023). Original GitHub issue: https://github.com/probberechts/soccerdata/issues/242 Hi Pieter and thanks for this repo very useful! I'm trying to run it in a Docker image, and I want to enable the headless mode. I have this error: `The ChromeDriver was unable to initiate/spawn a new WebBrowser. You will not be able to scrape new data. Message: unknown error: cannot connect to chrome at 127.0.0.1:53487 from unknown error: unable to discover open pages ` The WhoScored function is perfectly functional without the headless mode. Do you have any idea on how to run it in a Docker image?
kerem closed this issue 2026-03-02 15:55:19 +03:00
Author
Owner

@clairesecehDS commented on GitHub (May 16, 2023):

This has been solved by replacing:
chrome_options.add_argument("--headless")
with
chrome_options.add_argument("--headless=new")
in the _common.py file

<!-- gh-comment-id:1549753540 --> @clairesecehDS commented on GitHub (May 16, 2023): This has been solved by replacing: `chrome_options.add_argument("--headless")` with `chrome_options.add_argument("--headless=new")` in the `_common.py` file
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/soccerdata#46
No description provided.