Skip to content

A personalised Spotify quiz based on the music you listen to

Notifications You must be signed in to change notification settings

mcgill-a/whichone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whichone

https://whichone.rocks/

Super-Linter

Command Line Arguments

Parameter Description Default Required Type
id Spotify Developer API Client None ✔️ String
secret Spotify Developer API Client Secret None ✔️ String
redirect Spotify Login Redirect URI http://127.0.0.1:8080 ✖️ String
limit_route User IP address rate limit for accessing page routes "50 per day" "30 per hour" ✖️ List
limit_api User IP address rate limit for accessing API routes "10 per day" ✖️ List

Required Development Setup

  • Setup a virtual environment and install the project dependencies:
python3 -m venv ve-whichone
source ve-whichone/Scripts/activate
pip install -r whichone/requirements.txt
  • Create a new app on the Spotify Developer Dashboard

  • Whitelist the website address to the Spotify Developer app redirect URIs to redirect after Spotify authentication

  • (Optional) Set the Spotify parameters as environment variables:

export SPOTIFY_CLIENT_ID='YOUR SPOTIFY CLIENT ID'
export SPOTIFY_CLIENT_SECRET='YOUR SPOTIFY CLIENT SECRET'
export SPOTIFY_REDIRECT_URI='YOUR SPOTIFY REDIRECT URI'

Usage

# Get additional help regarding input parameters:
python run.py -h
# Run the server using only required parameters:
python run.py --id $SPOTIFY_CLIENT_ID --secret $SPOTIFY_CLIENT_SECRET
# Run the server using all optional parameters:
python run.py --id $SPOTIFY_CLIENT_ID --secret $SPOTIFY_CLIENT_SECRET \
    --redirect $SPOTIFY_REDIRECT_URI --limit_route "30 per hour" "50 per day" --limit_api "10 per day"

Screenshots

Contributors

Name Github
Alex McGill mcgill-a
Alexander Thompson athompsonScottLogic
Philip Hardy PHardySL

About

A personalised Spotify quiz based on the music you listen to

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •