Skip to content

Code and data for an analytics project in Python to identify the most brutal Cannibal Corpse song. Using Spotify Audio Features and NLP on lyrics.

Notifications You must be signed in to change notification settings

rbuerki/most-brutal-cannibal-corpse

Repository files navigation

Using Data to Find the Most Brutal Cannibal Corpse Song

A repository containing code for an analytics project in Python to identify the most brutal song based on audio features and analysis of the lyrics. I have written a blogpost on Medium about it. That post gives a nice overview over the approach and the result. The jupyter notebooks stored here provide all the code and go a little deeper in explaining and analyzing certain aspects of the project.

In case you don't know what Cannibal Corpse is - shame on you! Follow this link, please.

Introduction to project and code

The analysis was performed in Python. Audio related features were requested from the Spotify API (using the spotipy library) and lyrics scraped from the genius website (using a mixed approach of API requests and web-scraping with the beautifulsoup4 library).

The analysis is broken up in two parts / jupyter notebooks:

  1. The first contains the requesting of audio features from the Spotify API and the calculation of a "Sonic Brutality Index" for each song. It also contains an appendix comparing Cannibal Corpse's 'brutality' to that of Cannabis Corpse (of interest for Death Metal nerds only).
  2. The second contains the scraping of the lyrics from genius.com and the calculation of a "Lyrical Brutality Index", and then of the final "Total Brutality Index" by combining sbi and lbi.

Each notebook has an Appendix with some extra analyis. If you are into Cannibal Corpse - have a look ;-).

Install

This project requires Python 3.7 and the following Python libraries installed:

You will need to register for the Spotify and Genius APIs to work with your own credentials. I'll keep mine secret. And you will also need to have software installed to run and execute an Jupyter Notebook

environment.yml and requirements.text are provided.

Acknowledgements and Thanks

Project End Date: Feb 2020

About

Code and data for an analytics project in Python to identify the most brutal Cannibal Corpse song. Using Spotify Audio Features and NLP on lyrics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published