Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsoliangwu0130/spotify-news
A Flask application to retrieve the singers' latest news according to your Spotify current playing song.
https://github.com/tsoliangwu0130/spotify-news
bootstrap crawler flask oauth2 python3 restful-api spotify-api
Last synced: 4 days ago
JSON representation
A Flask application to retrieve the singers' latest news according to your Spotify current playing song.
- Host: GitHub
- URL: https://github.com/tsoliangwu0130/spotify-news
- Owner: tsoliangwu0130
- License: mit
- Created: 2017-08-08T23:54:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T00:42:43.000Z (almost 2 years ago)
- Last Synced: 2023-02-28T20:27:03.621Z (over 1 year ago)
- Topics: bootstrap, crawler, flask, oauth2, python3, restful-api, spotify-api
- Language: Python
- Homepage:
- Size: 637 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotify News [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
A [Flask](http://flask.pocoo.org/) app (Python 3) to retrieve the singers' latest news according to your [Spotify](https://www.spotify.com/) current playing song.
## Configuration
Register an application with [Spotify Developer](https://developer.spotify.com/), then export `CLIENT_ID`, `CLIENT_SECRET` and `REDIRECT_URI` as environment variables:
```
$ export CLIENT_ID=''
$ export CLIENT_SECRET=''
$ export REDIRECT_URI='http://localhost:5000/callback'
```## Usage
1. To install app dependencies, simply run:
```
$ pip install -r requirements.txt
```2. Start the app at [localhost:5000](http://localhost:5000):
```
$ python app.py
```## Docker
[Dockerfile](Dockerfile) is also provided. To run this app in a container, just simply install [Docker](https://www.docker.com/) first, then:
1. Build the docker image:
```
$ docker build -t tsoliang/spotify-news .
```2. 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='' \
-e CLIENT_SECRET='' \
-e REDIRECT_URI='http://localhost:5000/callback' \
tsoliang/spotify-news
```## Screenshot
![screen shot](/images/screenshot.jpg)