Why v1.3.0?
This new version introduces the past_matches_data
function, making it easier to fetch past encounters between two teams.
Follow the steps below to upgrade to the latest version.
If the datafc
package is already installed, you can update to the latest version by running the following command in the terminal:
--upgrade datafc pip install
If you haven’t installed datafc
before, use the following command:
pip install datafc
For more details about the package, you can visit its PyPI or GitHub pages.
New Features
You can now fetch all historical encounters of team pairs in upcoming matches based on tournament, season, and matchweek.
Practical Example
Let’s check the historical encounters of team pairs for matchweek 25 of the 2024/25 Premier League season.
from datafc.sofascore import past_matches_data
= past_matches_data(
past_matches_df =17,
tournament_id=61627,
season_id=25
week_number )
Best regards.