Back to Parent

Prototype

Parts used in the prototype. 

- Spotify API 

- JSON data of my most listened to Artists and Track names. 

- Processing sketch imports this JSON data

- Processing draws a visual representation of this data. 

 The first step was to get started playing around with the Spotify API and linking it to my account. I had to download a program called Node.js and access the Spotify data through the local server. I found this initially quite confusing as I am not very experienced using the Terminal.

 I eventually managed to request my top played tracks I had listened to and gathering the data associated with them. However, I then realised that it would be very hard to visualise this with the track names as data because each name is different and I would be able to assign variables to each. I then decided to get the Artist information about my top tracks which provided the genre associated with each artist. This information was in JSON format that I downloaded to my text editor. 

The next step was to import this code into processing. I added the JSON file into the processing file and made a call to extract the genre data. I then added a function that drew a circle and coloured it based on the genre that it was. Genres that were mentioned more than once were larger due to having overlapping circles. It was then relatively easy to see what genres I listen to the most, which was Hip Hop and Australian alternative rock.  


Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0