Django REST API for fetching soccer data.
An API built using DRF to scrape Football players' and teams' statistics from Api-Football-Beta and save it into a Postgres database. It uses a customized scraper to fetch and save the data; Uses the Celery task scheduler, with Redis as a broker, for fetching and saving these data. Also, the project has a logging and Redis cache setup; in addition to, Sentry error-tracking system. The main purpose of the project was to provide a Python Django interface, for fetching soccer statistics, to be used as a backend in custom projects.
- Docker & Docker Compose
- Python 3
- Clone the project
- define the environment variables in .env file
- run
docker-compose up --build -d
- run
docker-compose exec web python manage.py makemigrations api
- run
docker-compose exec web python manage.py migrate
- use django project shell to run scraping tests using scraping-example.py
- 0.1
- Initial Release
The soccer API service needs to be replaced with another working service
This project is licensed under the [MIT] License - see the LICENSE.md file for details