Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FotMob] Get the referee for upcoming matches #797

Open
richard-senior opened this issue Jan 23, 2025 · 3 comments
Open

[FotMob] Get the referee for upcoming matches #797

richard-senior opened this issue Jan 23, 2025 · 3 comments
Labels
enhancement New feature or request FotMob Issue or pull request related to the FotMob scraper good first issue Good for newcomers

Comments

@richard-senior
Copy link

Is your feature request related to a problem? Please describe.

It's not a problem per se...
fotmob.read_schedule() does not seem to return the name of the referee where it is available
See this: https://www.fotmob.com/en-GB/matches/afc-bournemouth-vs-nottingham-forest/2y4tjb#4506603
At the top of the page you can see the referee is (was) Craig Pawson

It is possible to scrape this from the matches page by getting the NEXT_DATA json element from the html response
So I think it should be available from the matches API.. not that I can access that anymore.

If you could have a look that would be great..
According to scikit-learn randomforrest.. Referee has some 8% bearing on match outcome :)

Describe the solution you'd like
fotmob.read_schedule() should return referee name where it is available..

Thanks for reading this..

[email protected]

@richard-senior richard-senior added the enhancement New feature or request label Jan 23, 2025
@probberechts
Copy link
Owner

This is the JSON of the Bournemouth - Nottingham Forest game: matchDetails.json. It indeed includes the referee. Would this allow you to implement it?

@probberechts probberechts added the FotMob Issue or pull request related to the FotMob scraper label Jan 23, 2025
@probberechts probberechts changed the title Getting the Referee from Fotmob for upcoming matches that have the data... [FotMob] Get the referee for upcoming matches Jan 23, 2025
@richard-senior
Copy link
Author

PS

You can get historical referee data from footballdata.co.uk for UK matches.
This allows you to train estimators using referee.
And then for upcoming matches you can predict where you have referee.

@richard-senior
Copy link
Author

This is the JSON of the Bournemouth - Nottingham Forest game: matchDetails.json. It indeed includes the referee. Would this allow you to implement it?

Yes.. I am currently screenscraping fotmob myself, but I would much rather re-use your work!

@probberechts probberechts added the good first issue Good for newcomers label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request FotMob Issue or pull request related to the FotMob scraper good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants