Chris Kiriakou aeb7c49068 Create improved Dockerfile with volume mounts for storing data
* Add volume mounts to Dockerfile to enable persisten storing of
  database and tokens when using docker
* Makefile helps with cleanup and building the Dockerfile
* Startup fires the predictify runtime inside the container
* `.dockerignore` contains files that are not needed by the docker,
  e.g. files that would otherwise slow build process down
2025-03-21 19:07:30 +01:00
2025-03-19 01:36:50 +01:00
2025-03-18 17:04:08 +01:00
2025-03-19 01:36:50 +01:00
2025-03-19 01:36:50 +01:00

Predictify

Overview

A Data analysis tool to scrape your Spotify History usage and let a ML-Model predict your next songs

Authentication API

Official Documentation Authorization Code Flow

Usable possible APIs

Recently Played Tracks: /me/player/recently-played Official Spotify Documentation

Get Track: /tracks/{id} Official Spotify Documentation

Get Track's Audio Features (Deprecated): /audio-features/{id} Official Spotify Documentation

Get Track's Audio Analysis (Deprecated): /audio-analysis/{id} Official Spotify Documentation

Get Artist: /artists/{id} Official Spotify Documentation

Docker usage

cd inside the projects directory:

cd predictify

To run predictify inside a container, first make sure to build the image:

make dockerfile

Note

Create a seperate data directory (e.g. docker-data):

mkdir docker-data

Note

To detatch the container to run it in the background add the --detach directly after the run command. Then run the following docker command, to run the container in the foreground:

docker run \
    --name predictify \
    --network=host \
    --volume $(pwd)/data-docker:/app/predictify/data \
    --volume $(pwd)/config:/app/predictify/config \
    predictify:unstable

Authors

Chris Kiriakou Dominik Agres

S
Description
No description provided
Readme MIT 20 MiB
Languages
Jupyter Notebook 99.2%
Python 0.8%