Scraping Data from Billboard's Top Albums

Posted on Aug 12, 2018
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


Billboard has been the industry standard for providing weekly music charts since its inception in the mid-20th century.ย I decided to scrape every week's worth of data from's Top 200 and Catalog Album charts (dating back to 1963 and 1991, respectively). I then conducted analysis of the data in regards to entrants' longevity, ranking, and appearance on both charts.

Web Scraping

Using Python's Scrapy package, I created a web spider for each of the two charts.ย  Some of the challenges of this particular scraping project were:

  • Converting strings to and from Datetime objects to form URLs, and defining the scope of the URLs crawled
  • Non-uniform object pattern. XPath of chart-topper is different from all other chart entries
  • The XPath was changed while I was testing my program!

Scraping Data from Billboard's Top Albums


Top 200 Data Analysis

The first question that I wanted to use this data to answer was "what's the best album of all time?" That is certainly not something that can be easily concluded, but the following two figures can help provide some insight:

Scraping Data from Billboard's Top Albums

Scraping Data from Billboard's Top Albums

Assuming that some combination of the two metrics above do measure chart superiority, we can further examine the behavior of our two contenders by viewing their chart ranking over time.

Scraping Data from Billboard's Top Albums

A lot can be said about the behavior of these two charts. I find it particularly interesting the semi-cyclical behavior exhibited by The Dark Side Of The Moon, and how that absolutely is not seen with Thriller.

The next thing that crossed my mind was trying to figure out "who is the best at making albums?" I then conducted a similar analysis - tallying first how many albums a given artist had that reached number one, and then how many different albums reached any level on the charts.

There are a few important things to take note of here:

  • Omitted from the previous two charts are "Soundtrack" and "Various Artists," each of which surpassed the other entrants by a wide margin
  • The tallies do not discern studio albums (the ones that are actually comprised of newly-created content) from compilations, re-releases,ย singles, live albums and other releases


Top Catalog Albumsย  Data Analysis

First, I think it is worthwhile to define what exactly qualifies as a catalog album. Per Billboard's website:

"Top Catalog Albums ranks the most popular albums across all genres that are at least 18-months old and have fallen below no. 100 on the Billboard 200"

Clearly there is some inter-relatedness between entrants on the Top Catalog Albums and Top 200 charts, but I will address that in detail later. I'll show the top albums on the Catalog chart like I did with the Top 200.



Bob Marley sure is making his presence felt! His Legend: The Best Of album is the best performing album in the (relatively short) history of the Catalog Albums chart, no matter how you slice it.

Examining the Inter-Connectedness of the Two Charts

  • 2,020 of the 2,368 Catalog Albums Also Appeared on Top 200 (85.3%)
  • Of the 348 that did not:
    • 20 reached number one on the Catalog chart
    • 18 have been on the Catalog chart for 52 weeks or more
    • 67 first appeared on the Catalog chart after Jan 1, 2010

About Author

Max Schoenfeld

Max is a data scientist pursuing opportunities to use his machine learning expertise in a market-oriented setting such as sports gambling, finance, or general business analysis. He has business experience providing investment professionals with data solutions and recommendations.
View all posts by Max Schoenfeld >

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI