statsbomb/statsbombpy

How can I setup this project to use open-data repo instead API?

maotoledo opened this issue · 2 comments

Contact Details

No response

Version

1.0.1

What platform are you seeing the problem on?

Mac

What Python version are you running, are you using a virtual environment? Give us as much info as you can.

3.8

What happened?

I understand that this repo is used for API credentials and Free data from open-data repository. I would like to know how to setup my environment to use it with local data.

Relevant log output

No response

Code to reproduce issue

No response

Attempted solutions

No response

If you don't provide credentials, the data will be pulled from the open data repo on github by default.

public.py is where that happens, so you could switch out the requests there so that they just read json files you have stored locally instead (if you've already cloned the open data repo, for example).

This is not a use case we support though, so you would have to clone statsbombpy and modify it.

Does that answer the question?

It does, ty 👍