This project scrapes NBA 2024-25 Season boxscores from Basketball Reference and stores it into a local Postgres database. The scraping script and postgres database is containerized using Docker.
-
Set up Docker Desktop
-
Run the command
mv dev.env .env
and fill in the necessary variables -
Build the containers using the command
docker compose build
-
Run the containers using the command
docker compose up -d
- Each time the containers start, the script scrapes boxscore data from Basketball Reference
-
To have the latest data, run the command
docker compose start
or start the containers through the Docker Desktop application
A PowerBI dashboard was created which can be interacted with through this link. Several measures were created using complex DAX queries to create some of the more interesting visuals. Snapshots of the dashboard can be seen below.