Skip to content

Conversation

@zack-fathi
Copy link

@zack-fathi zack-fathi commented Apr 1, 2025

Changes Made

  • Enhanced read_team_match_stats to recognize and extract the "xG on target (xGOT)" field from within the "Expected goals (xG)" section.
  • Updated the test suite (test_read_team_match_stats) to include stat_type="Expected goals on target (xGOT)".

Closes #781 — This feature allows users to explicitly request xGOT data, which was previously included in the data but not directly accessible.

Note: CI failures are unrelated to this PR. The failing tests are in FiveThirtyEight and SoFIFA, which were not touched in this PR. Errors appear to be caused by external data sources returning unexpected or malformed data (e.g., HTML instead of JSON).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FotMob] Add support for scraping xGOT info

1 participant