Create a new playlist for your 'Discover Weekly' playlist from spotify.
544
Creates a new playlist for your 'Discover Weekly' playlist from spotify with the new name 'DiscoverWeekly_KW[CalendarWeek], e.g. 'DiscoverWeekly_KW43'. When you run it for the first time and you open the browser you need to login to spotify with your username and password and you need to allow the requested grants. Currently these are requested:
do not know whether you need all of them (I'm too lazy to look it up) but you need at least the private permissions otherwise the playlist cannot be created.
###How to run
####Spotify App
docker run -d -e "USER=[YOUR_SPOTIFY_USER_NAME]" -e "CLIENT_ID=[YOUR_CLIENT_ID]" -e "CLIENT_SECRET=[YOUR_CLIENT_SECRET]" -p 8080:8080 matlockx/spotify-playlist
Open your browser at http://localhost:8080/create-playlist or http://[boot2docker_ip]:8080/create-playlist
Create virtual environment:
mkdir ~/.virtualenvs
pyvenv-3.5 ~/.virtualenvs/spotify
source ~/.virtualenvs/spotify/bin/activate
pip install -r requirements.txt
Create a small bash script, e.g. run.sh:
#!/usr/bin/env bash
export CLIENT_ID=[YOUR_CLIENT_ID]
export CLIENT_SECRET=[YOUR_CLIENT_SECRET]
export USER=[YOUR_SPOTIFY_USER_NAME]
open http://localhost:8080/create-playlist && python -m bottle -b 0.0.0.0:8080 main --debug
Run it:
chmod +x run.sh
./run.sh
Content type
Image
Digest
sha256:665693acf…
Size
73.9 MB
Last updated
over 10 years ago
docker pull matlockx/spotify-playlist