Skip to content

h1yung/SpotiPlus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn


SpotiPlus

Retrieve and visualize the top 5 music genres found in a selected public Spotify playlist or a user's entire playlist library.

Table of Contents
  1. YouTube Demo
  2. Description
  3. Usage
  4. Contact

YouTube

download

Description

titlescreen

A common question that we ask within one another is "what music do you like to listen to?" With SpotiPlus, you can scan all your or someone else's public Spotify playlists and determine what your favorite music genres are. Do you ever have a Spotify playlist full of songs and wonder: what would be the genre of this collection? find out with SpotiPlus!

Once the application completes its analysis, you get the top 5 music genres of a user's playlist(s) and a pie chart visualization of the playlist's music genre composition.

SpotiPlus uses Python and the Spotify and Live.fm APIs. With the Spotify API, it reads in the user's Spotify playlists, obtains the songs within, and then finds the artists of each song. Since Spotify's API does not consistently record the genres of songs and artists, I decided to use the Live.fm API, which has the "tag" element for storing genres that the artists belong to. I looked up the list of artists through live.fm and queried the genres into a dictionary.

With this data, I created a Matplotlib pie chart as well as a list of the top 5 genres. The GUI was made through Tkinter.

Usage

  1. Download the files in the repo
  2. On terminal, switch to the file's directory
  3. Run the following
    export CLIENT_ID="(your spotify developer client id)"
    export CLIENT_SECRET="(your spotify developer client secret)"
    export LASTFM_APIKEY="(your lastfm api key)"

python main.py

Contact

Daniel Park - @h1yung - h1yungpark@gmail.com

Project Link: https://github.com/h1yung/SpotiPlus

About

Retrieve and visualize the top 5 music genres found in a selected public Spotify playlist or a user's entire playlist library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages