A real social experiment.
From music lovers.
To data scientist.
And viceversa :D.

SpotiSpy: the idea

The idea: take the songs heard using Spotify and shared on social to extract information about tracks, genres, users. SpotiSpy performs more than just visualization: it analyzes the kinds of songs, geolocalizes users, extracts the list of most listened songs, and so much more.


Through sharing you can find out how much a song is heard: this information is related on set of users that usually share what they are listening to, and this is a limit. But it is a real fact based on the actual interest, and this is a big advantage. Also from the genres of the songs, you can discover about music and users from different country around the world.


By using different databases (crossing data from several sources such as Gracenote and, we tagged and completed the profiles of each song shared in the network for fifteen days. It has come out that music genres are distinctive: in the future, it would be nice to explore how these genre preferences evolve in time.


People who love pop music, listen to pop music. Follow the trend of pop music. Share pop music tracks. And is socially related to those who love pop music. SpotiSpy framework, through use of libraries such as Networkx and complex network management software such as Gephi, finds these relationships, explores and represents them in suggestive images that allow you to understand the social network topology. In addition, it performs sentiment analysis on the songs, based on the index of the positivity of the genres belonging to them.


Some of the images produced taking advantage of SpotiSpy framework

Next Steps

We would like to continue our work by getting more resources and automating all the processes we have done to create a complete free-available tool. For instance, it would be great to take advantage of localization information, isolate them wherever possible, to normalize them and represent the world map to identify where most shared songs come from: this would be usefull to find out whether the same country prefers a song rather than a genre or other, to tie songs to certain events, to analyze the feelings that different country are experiencing on a geographic basis and justify them through the political events of that nation (just think of the riots in Ukraine, or the protests in Russia during the Olympic Games).