Git Product home page Git Product logo

spotify_flask_plotly's Introduction

This is a simple flask app that uses the Spotify API to:

  1. Collect playlists from the current user
  2. Collect the tracks from all the playlists
  3. Gather the audio features from all tracks
  4. Displays interactive visualizations with summary values from the audio features

The app is based on Flask and a single-paged flexbox. The Api calls and the plots are made in Python 3 and the visualizations are produced with Plotly figures.

App

How to run it locally

git clone https://github.com/jsga/Spotify_Flask_Plotly.git
cd Spotify_Flask_Plotly
sh start.sh

Then visit http://127.0.0.1:5000/, press Ctrl + C to quit

How to get a valid token

Go to Spotify for developers website and press "Get Token". The required scopes for the endpoint uses are "playlist-read-private".

Spotify screenshot

What do the audio features mean?

  • Danceability: Danceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. A value of 0.0 is least danceable and 1.0 is most danceable.
  • Acousticness: A measure from 0.0 to 1.0 of whether the track is acoustic.
  • Energy: Energy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity. Typically, energetic tracks feel fast, loud, and noisy.
  • A complete list of the features is described in this post.

Todo list

  • Allow the user to select which features to show
  • Divide the analysis in multiple pages

spotify_flask_plotly's People

Contributors

jsga avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.