Skip to content

An Node JS based web application to visualize and analyze musical preferences using Spotify's API and LastFM's API

Notifications You must be signed in to change notification settings

piyp791/analyze-my-music

Repository files navigation

analyze-my-music

An Node JS based web application to visualize musical preferences using Spotofy's API in terms of attributes like tempo, energy, valence, danceability etc along with genre tags obtained from LastFM's API.

Project setup

  1. Download the project.
  2. Run the npm install command in the command line to install the dependencies.
  3. Create a Spotify application using instructions from this link.
  4. Get the client ID and client secret that you would need for accessing the Spotify endpoints.
  5. Modify the config.js file and enter your Spotify client ID and client secret.
  6. Start the nodejs server by executing the command node index.js
  7. Open the URL localhost:3000 in the browser.
  8. Upload a text file with the music library details i.e. song names along with the artist names. Sample text files are present in the /sample_subject_preferences folder.

Screnshots

results visualization

results visualization

results visualization

results visualization

songs genre tags

Future work

  1. Exporting playlists directly from spotify and using it for analysis instead of manually entering details.
  2. Exporting results to a PDF document.
  3. Fetching related artists and songs using the the Spotify API.
  4. Extending the playlist export service to other music straming services such as Google play music.

About

An Node JS based web application to visualize and analyze musical preferences using Spotify's API and LastFM's API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published