-
Notifications
You must be signed in to change notification settings - Fork 109
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] Multiple Invalid Stat Types for FotMob #528
Comments
I also just discovered that stats in the working "Top stats" category show the opponents' stats for each metric. |
What seasons and leagues are causing the issues? |
I've only done the 2015-16 Barcelona season because that's what I'm using for a project, but it is probably a site-wide thing due to changes. FBref also could have an added playing-time stat and I think some outdated requests because some of the stat categories don't work on that site too. |
Yes, it looks like there are limited stats available for seasons prior to 2016-2017, so the available stats are all in the "Top stats" category. For the second issue, if you set |
Ok, thank you. |
Hey, just to add to this. When I run Bolton Wanderers in ENG League One for the 2023/24 season using this code match_stats = fotmob.read_team_match_stats(opponent_stats=True, team='Bolton Wanderers', stat_type='Expected goals (xG)') I get an error - and closer inspection this appears to be that some of this club's games were abandoned in the year. Specifically when I run this code schedule = fotmob.read_schedule() Then for some games status = Ab (as opposed to FT, which is what most games say) and this leads to an error |
When trying to call
read_team_match_stats()
, the stat types given by the docs cause an "Invalid stat type" error for multiple categories. The "Top stats" category seems to be one of the only working ones.The text was updated successfully, but these errors were encountered: