Skip to content

Tool for collecting Hololive stats from Spotify and displaying them

Notifications You must be signed in to change notification settings

kunesj/holo-spotify-stats

Repository files navigation

Hololive Spotify Stats

Tool for collecting Hololive stats from Spotify and displaying them in a simple graph.

Website: https://holo-spotify-stats.jirikunes.eu/

Script Setup

  • Use uv with Python 3.11+
  • Install script dependencies with uv sync --locked
  • Configure git, ssh and dma
  • Create config.json from config.default.json
  • Run with uv run python cron.py

Docker

Alternatively, you can also run the script from docker.

  • Configure git, ssh and dma on host
  • Create config.json from config.default.json
  • Run docker compose up -d to start the container

Website Setup

Install Node.js

nvm install 16.20
nvm use 16.20

If you are running this with Pycharm, the NVM ENV variables must be copied from ~/.bashrc to ~/.profile. These ones:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Build assets

cd website
npm install
npm run build

Run local server

cd website
npm run preview

Development

Pre-commit

Install prek:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/j178/prek/releases/download/v0.2.3/prek-installer.sh | sh
prek self update

Install hooks:

prek install
prek install-hooks

To manually run it on all files:

prek run --all-files

About

Tool for collecting Hololive stats from Spotify and displaying them

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published