Skip to content

A Flask application to retrieve the singers' latest news according to your Spotify current playing song.

License

Notifications You must be signed in to change notification settings

tsoliangwu0130/spotify-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify News MIT licensed

A Flask app (Python 3) to retrieve the singers' latest news according to your Spotify current playing song.

Configuration

Register an application with Spotify Developer, then export CLIENT_ID, CLIENT_SECRET and REDIRECT_URI as environment variables:

$ export CLIENT_ID='<CLIENT_ID>'
$ export CLIENT_SECRET='<CLIENT_SECRET>'
$ export REDIRECT_URI='http://localhost:5000/callback'

Usage

  1. To install app dependencies, simply run:
$ pip install -r requirements.txt
  1. Start the app at localhost:5000:
$ python app.py

Docker

Dockerfile is also provided. To run this app in a container, just simply install Docker first, then:

  1. Build the docker image:
$ docker build -t tsoliang/spotify-news .
  1. Pass the environment variables to Docker container then start the container and expose the container port to local port 5000:
$ docker run -d -p 5000:5000 \
             -e CLIENT_ID='<CLIENT_ID>' \
             -e CLIENT_SECRET='<CLIENT_SECRET>' \
             -e REDIRECT_URI='http://localhost:5000/callback' \
             tsoliang/spotify-news

Screenshot

screen shot

About

A Flask application to retrieve the singers' latest news according to your Spotify current playing song.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published