Skip to content

Play a random Spotify album from the library of the user

License

Notifications You must be signed in to change notification settings

alessiosacco/PlayRandomSpotifyAlbum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Play a random album from the Spotify® library of the user. The user needs to have a currently active Spotify® Premium account and a currently active device capable of playing music.

How to use

  1. Install python 3 and pip

Instructions for Ubuntu 18.04

sudo apt update
sudo apt install python3
sudo apt install python3-pip
  1. Install the flask and requests libraries
pip install requests
pip install Flask
  1. Register as a developer to https://developer.spotify.com/dashboard/

  2. Create a new application and get the client id and client secret

  3. Substitute the values in flask.sh

  4. Edit the settings of the application in the dashboard and add this redirect URI

http://localhost:5000/receive-authorization
  1. Run flask.sh

  2. Connect to localhost:5000/ and follow the instructions

Disclaimer

I am in no way affiliated to Spotify Technology SA nor do I own the Spotify® trademark.

About

Play a random Spotify album from the library of the user

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published