Saturday 12:10 p.m.–12:40 p.m.
Analyzing Rap Lyrics with Python
Julie Lavoie
- Audience level:
- Novice
- Category:
- Other
Description
Have you ever wondered which rapper is the most sexist? Come learn how to find out by scraping rapgenius and analyzing rap lyrics using Python with libraries like pattern and Beautiful Soup! There will be pictures of Lil' Jon.
Abstract
Have you ever wondered which rapper is the most sexist? Come learn how to find out by scraping rapgenius and analyzing rap lyrics using Python with libraries like pattern and Beautiful Soup!
We'll cover how to get a large corpus of rap lyrics to analyze, how to scrape the lyrics out of a web page, look at the incidence of certain words in the data stream, and then see how well this works as a sexism metric. Programmers will leave knowing how to tackle an interesting real-world data scraping and analysis problem using novel data.