Watson Personality Insights of Artist Lyrics
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
- Install nodeJS version 8
- Clone this repo
- Run
npm install
- 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"
}
}
- Run
node ./analysis/dataRetriever.js "<artist name>"
- 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)
- install nodeJS version 8
- clone this repo
- run
npm install
- run
npm start
- go to http://localhost:3000 to see the data!
Run Tests
- run test by calling
npm test