mirror of
https://github.com/probberechts/soccerdata.git
synced 2026-04-26 02:25:51 +03:00
[GH-ISSUE #242] [WhoScored] Headless option doesn't seems to work #46
Labels
No labels
ESPN
FBref
FotMob
MatchHistory
SoFIFA
Sofascore
WhoScored
WhoScored
bug
build
common
dependencies
discussion
documentation
duplicate
enhancement
good first issue
invalid
performance
pull-request
question
question
removal
understat
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/soccerdata#46
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 pagesThe WhoScored function is perfectly functional without the headless mode.
Do you have any idea on how to run it in a Docker image?
@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.pyfile