datafc v1.3.0 is Live!

Package
Author

Uraz Akgül

Published

February 22, 2025

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:

pip install --upgrade datafc

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_df = past_matches_data(
    tournament_id=17,
    season_id=61627,
    week_number=25
)

Best regards.