Skip to content
An Node JS based web application to visualize and analyze musical preferences using Spotify's API and LastFM's API
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
html
images
public
sample_subject_preferences
spotify-source
util
views
.gitignore
Procfile
README.md
async.js
await.js
config.js
index.js
package.json
routes.js
tags.txt
vision.txt

README.md

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.
You can’t perform that action at this time.