/watson-artist-lyrics-analysis

Watson powered artist lyrics analyzer

Primary LanguageJavaScript

Watson Personality Insights of Artist Lyrics Build Status

This node application uses Watson Personality insights to anaylize an artist's personality through song lyrics across their career.

Each album's lyrics are analyized separately giving us an insight to an artist's personality in relation to their music across their career.

Get Personality Insights

  1. Install nodeJS version 8
  2. Clone this repo
  3. Run npm install
  4. Make or get a credentials.json file and place in the root directory of the project
{
  "personalityInsights": {
    "url": "https://gateway.watsonplatform.net/personality-insights/api",
    "username": "xxxxxxxxxxxxxxxx",
    "password": "xxxxxxxx"
  },
  "spotify": {
    "clientId": "xxxxxx",
    "clientSecret": "xxxxxx"
  }
}
  1. Run node ./analysis/dataRetriever.js "<artist name>"
  2. You will find the artist results under ./analysis/artists_results. Results are formated like this:
{
	"artist": "name",
	"artistMetadata": {

	},
	"albums": [
		{
			"title": "",
			"metadata": {

			},
			"insights": {

			}
		}
	],
	"lifeEvents": [
		{
			"date": 1513627771466,
			"eventTitle": "",
			"eventDescription": ""
		}
	]
}

Run Locally (Website)

  1. install nodeJS version 8
  2. clone this repo
  3. run npm install
  4. run npm start
  5. go to http://localhost:3000 to see the data!

Run Tests

  1. run test by calling npm test