Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 1.38 KB

README.md

File metadata and controls

54 lines (44 loc) · 1.38 KB

Django app with Spotify API

I built a simple Django app that grabs your top 50 spotify songs and save them on a sqlite3 database, this will be used for train a ML model that can tell your personality type based on your likes.

Requirements

Setup

To get ready just follow the instructions.

  1. Clone the project repository:
git clone https://github.com/BubuDavid/Spotify-API-Top-User-Tracks.git

cd Spotify-Api-Top-User-Tracks
  1. You can create an environment with
virtualenv -p python .

and activate it with:

# Windows
Script/activate.bat
# IOS
source spotify-top/bin/activate

or with conda by typing

conda create -n spotify-top

and activate it whith

conda activate spotify-top
  1. Install the requirements
(pose-estimation)$ pip install -r requirements.txt
  1. Remember to set your client_id and client_secret from you spotify app, you can use enviroment variables or a .env document. If you do not know how to create an app, follow this tutorial.

  2. Set your redirect_uri to http://localhost:8888/callback inside your app settings on spotify developer.

  3. And to run the app you can do

python manage.py runserver 8888