Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 923 Bytes

README.md

File metadata and controls

26 lines (16 loc) · 923 Bytes

Soccer prediction machine with Machine Learning

Provide soccer prediction model with expected players for each positions and the result.

Setup

git clone https://github.com/huazhihao/soccer && cd soccer
pip install -r requirement.txt
FLASK_APP=soccer.py flask run

Database

Download soccer.zip and unzip to ./database.sqlite under this repo working directory.

Query APIs

Generic queries

curl http://127.0.0.1:5000/q/league # all leagues
curl http://127.0.0.1:5000/q/league/country_id/1729 # league "England Premier League"
curl http://127.0.0.1:5000/q/team/team_api_id/8455 # team Chelsea

Ad hoc queries

curl http://127.0.0.1:5000/team/league/1729 # all teams under "England Premier League"
curl http://127.0.0.1:5000/player/team/8455-10260 # all players attended the match between Chelsea and Manchester United