NYC Data Science Academy| Blog
Bootcamps
Lifetime Job Support Available Financing Available
Bootcamps
Data Science with Machine Learning Flagship ๐Ÿ† Data Analytics Bootcamp Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lesson
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories Testimonials Alumni Directory Alumni Exclusive Study Program
Courses
View Bundled Courses
Financing Available
Bootcamp Prep Popular ๐Ÿ”ฅ Data Science Mastery Data Science Launchpad with Python View AI Courses Generative AI for Everyone New ๐ŸŽ‰ Generative AI for Finance New ๐ŸŽ‰ Generative AI for Marketing New ๐ŸŽ‰
Bundle Up
Learn More and Save More
Combination of data science courses.
View Data Science Courses
Beginner
Introductory Python
Intermediate
Data Science Python: Data Analysis and Visualization Popular ๐Ÿ”ฅ Data Science R: Data Analysis and Visualization
Advanced
Data Science Python: Machine Learning Popular ๐Ÿ”ฅ Data Science R: Machine Learning Designing and Implementing Production MLOps New ๐ŸŽ‰ Natural Language Processing for Production (NLP) New ๐ŸŽ‰
Find Inspiration
Get Course Recommendation Must Try ๐Ÿ’Ž An Ultimate Guide to Become a Data Scientist
For Companies
For Companies
Corporate Offerings Hiring Partners Candidate Portfolio Hire Our Graduates
Students Work
Students Work
All Posts Capstone Data Visualization Machine Learning Python Projects R Projects
Tutorials
About
About
About Us Accreditation Contact Us Join Us FAQ Webinars Subscription An Ultimate Guide to
Become a Data Scientist
    Login
NYC Data Science Acedemy
Bootcamps
Courses
Students Work
About
Bootcamps
Bootcamps
Data Science with Machine Learning Flagship
Data Analytics Bootcamp
Artificial Intelligence Bootcamp New Release ๐ŸŽ‰
Free Lessons
Intro to Data Science New Release ๐ŸŽ‰
Find Inspiration
Find Alumni with Similar Background
Job Outlook
Occupational Outlook
Graduate Outcomes Must See ๐Ÿ”ฅ
Alumni
Success Stories
Testimonials
Alumni Directory
Alumni Exclusive Study Program
Courses
Bundles
financing available
View All Bundles
Bootcamp Prep
Data Science Mastery
Data Science Launchpad with Python NEW!
View AI Courses
Generative AI for Everyone
Generative AI for Finance
Generative AI for Marketing
View Data Science Courses
View All Professional Development Courses
Beginner
Introductory Python
Intermediate
Python: Data Analysis and Visualization
R: Data Analysis and Visualization
Advanced
Python: Machine Learning
R: Machine Learning
Designing and Implementing Production MLOps
Natural Language Processing for Production (NLP)
For Companies
Corporate Offerings
Hiring Partners
Candidate Portfolio
Hire Our Graduates
Students Work
All Posts
Capstone
Data Visualization
Machine Learning
Python Projects
R Projects
About
Accreditation
About Us
Contact Us
Join Us
FAQ
Webinars
Subscription
An Ultimate Guide to Become a Data Scientist
Tutorials
Data Analytics
  • Learn Pandas
  • Learn NumPy
  • Learn SciPy
  • Learn Matplotlib
Machine Learning
  • Boosting
  • Random Forest
  • Linear Regression
  • Decision Tree
  • PCA
Interview by Companies
  • JPMC
  • Google
  • Facebook
Artificial Intelligence
  • Learn Generative AI
  • Learn ChatGPT-3.5
  • Learn ChatGPT-4
  • Learn Google Bard
Coding
  • Learn Python
  • Learn SQL
  • Learn MySQL
  • Learn NoSQL
  • Learn PySpark
  • Learn PyTorch
Interview Questions
  • Python Hard
  • R Easy
  • R Hard
  • SQL Easy
  • SQL Hard
  • Python Easy
Data Science Blog > Student Works > Using Data to Web Scrape - Record Sales

Using Data to Web Scrape - Record Sales

Matthew Boubin
Posted on Jun 10, 2021

Overview

Over the past fifty years, audio technology has changed dramatically, and recently, the music production industry has seen a massive transition in user preferences.  With the advent of streaming services in the early 2010s, more users now prefer to stream music as opposed to owning physical copies of media. In this text will use data to web scrape.

Through these changes, the once dominant vinyl record industry remains intact, and many users prefer vinyl because of the many benefits of vinyl formatting. Vinyl records lack the compression loss of digital audio files, often have greater sound quality, and can serve a collectible or novelty for the user. 

 

In evaluating the current state of the vinyl record industry, a few questions become apparent.

  • Are modern artists releasing their music in vinyl format, and if so, how do the number of modern releases compare to that of older artists?
  • How does the cost modern vinyl releases compare to that of older releases>
  • What can the vinyl industry do to keep up with digital formats and streaming platforms?

The code used in the following analysis can be found on Github.

Popular Music Trends

To investigate this problem. I referred to the Billboard 200 album of the week archive available on Wikipedia. This is a comprehensive list of the highest rated album for each week from 1953 to today according to the culture magazine, Billboard. The dataset stored on Wikipedia contains the year of the release, the week the release was most popular, the name of the release, and the name of the artist. I used the data from 1975 to 2020 to evaluate the trends in vinyl releases over time from when vinyl was the most popular media format to the age of streaming.

Using Data to Web Scrape - Record Sales
Figure 1: Billboard 200 Album of the Week 2020 (January - April)

I used the Python library Scrapy to scrape the tabular data from wikipedia. Though the data from Billboard gives us insight into artist and release popularity over time, it provides no indication as to how vinyl record sales performed in the market. Discogs is a digital marketplace where users can sell audio media in all formats, and it has become a popular platform for vinyl sales, and I scraped this site to better understand the vinyl marketplace.

Vinyl Releases Over the Years

To begin investigating this problem, I began by observing the total number of vinyl releases by artist per year. In a given year, an artist may have many releases even though they have only released or recorded a single album. The reason that album releases appear this way is a result of the same recording being releases in a different format.

For example, two vinyl releases that contain identical audio recordings but have different record sleeves are considered separate vinyl releases. The total number of vinyl releases per artist per year will give us a good understanding of how many different vinyl formats were created for a particular album accounting for international releases, alternative album art, collaboration albums, and limited edition copies.

First, I chose to simply compare two artists, one artist that had a Billboard album of the week listed in 2019 (DaBaby) and another artist that had a Billboard album of the week listed in 1984 (Huey Lewis and the News). Presumably, Huey Lewis and the News would have a higher number of releases per year than DaBaby because of the popularity of vinyl at the time, and this is reflected by Figure 2.

The total number of releases per artist, particularly the number of releases by Huey Lewis and the News in 1986 were much higher than I expected. One has to remember that these are only the total number of releases that have been listed for sale on Discogs, and many more releases could have been put into production.

Using Data to Web Scrape - Record Sales
Figure 2: Vinyl releases per year for Huey Lewis and the News (1984) versus DaBaby (2019)

With the findings from these two artists in mind, I decided to pick two years and plot all releases from all Billboard 200 number one album producing artists from each year in the same format. The years picked were 1976 and 2010. Vinyl was more popular in 1976 than in 2010, and it can be assumed that the same trend present in the number of releases from Huey Lewis and the News versus Dababy will be observed in the difference between the number of releases in 1976 versus 2010.

2010 was chosen instead of a more recent year, because it is clear based on Figure 2 that album releases can be produced many years after the initial release of the audio recording to account for delayed international popularity and other factors such as collaboration and greatest hits albums. Additionally, an artist with a popular release in 2010 may continue to release other albums in subsequent years. Observing the trends from 2010 instead of a more recent year will give us enough time to see how many releases are present in subsequent years.

Using Data to Web Scrape - Record Sales
Figure 3: International releases per year for Billboard Album of the Week artists from 1976 versus 2010.

Surprisingly, the number of releases per year observed from Discogs does not reflect the initial hypothesis. There are many factors that contribute to this.

  1. A greater number of artists in 2010 were listed on the Billboard Album of the Week charts than in 1976
  2. Discogs has only existed since the year 2000, and it was originally intended to serve as a database for online releases of electronic music
  3. International popularity of (mostly) United States based music has greatly increased between the years of 1976 and 2010, and this has supported both a greater number of international releases and shorter delays in releases of international record formats.

Even when considering the above factors, the data does suggest that, at the very least, modern artists do appear to be releasing vinyl formats and individuals are listing modern vinyl records for sale on Discogs in greater quantities than records produced by older artists.

Album Prices

In addition to the total number of releases from popular artists listed on Discord, I am interested in the price of albums for sale and how release year affects the price of an album. In order to collect this data, I scraped each entry from the first 200 pages of recent listings on the discord marketplace which contained a total of 5000 album listings.

From each listing, I recorded the price and year of each album released in order to track the trend of album prices based on release data. The data was smoothed using a running average filter to capture the trend of album prices per year, and the results show a clear trend where album price increases as the release date approaches the modern day.

Using Data to Web Scrape - Record Sales
Figure 4: Album prices based on release date as of June 2020.

There are several shortcomings of the data used to generate this analysis of album price trends.

Sample Size per Year

Because the data was retrieved from the first pages of the entire Discogs marketplace, there are not an equal number of samples from each year represented in the price data collected. For example, there were very few albums listed in the marketplace from 1966, and a single, expensive anthology album skewed the average price that year so that it appears much higher than it might have been if more data were collected.

In order to account for these inconsistencies, the running average filter was used to capture a general trend of the price data, however, analyzing a larger dataset with equal samples per year could have better solved this problem.

Time Dependence

Similarly, individuals post listings to the Discogs marketplace continuously, and the data scraped from the Discogs marketplace only represents the price at a momentary state. If this data were scraped a day later than it were, as many as hundreds of new entries could have been added to the marketplace home page, resulting in a near complete turnover of the data represented in Figure 4. On a more macroscale, if the data were to be collected years ago or years in the future, music trends and vinyl record popularity could have completely changed, resulting in different data trends.

Discogs Resale Philosophy

Discogs is strictly a resale platform, and it does not allow record labels to directly sell original products to customers. Because of this philosophy, it is unclear how skewed the price of recently released records are by the reality that they were also recently sold to a user by a record label or vendor at an invoice price.

For example, an released in the mid 20th century, though potentially popular and valuable, could be sold on discogs at a lower price than its true value because its price depends more heavily on the seller's attachment to it than it does on the initial invoice value. Contrarily, it is reasonable to think that someone selling a record released only a few years prior remembers the invoice price that they have paid and intends to sell the record at a similar price.

Given these limitations of the data collected, it is clear that record sales on Discogs are trending upwards per year with a few caveats.

  1. The trends are measured as of June 2021
  2. Sales represent resale value only
  3. The data analyzed is subject to the listings available on Discogs

Conclusions

Modern vinyl sales appear to be performing very well in resale markets in comparison to what I expected to find. It appears that artists are in fact producing vinyl formats of their new releases, and users appear to be buying and selling them on resale platforms at higher rates and higher prices than older releases.

It still remains somewhat unclear what the vinyl record industry can do to compete with streaming platforms, because the data used in this analysis is limited to vinyl resale. To further investigate this problem, it would be important to also analyze the streaming user habits and the vinyl record sales trends of record labels selling media at invoice prices.

The skills I demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

About Author

Matthew Boubin

Matt Boubin is an electrical engineer with three years of digital signal processing experience in commercial aviation.
View all posts by Matthew Boubin >

Leave a Comment

No comments found.

View Posts by Categories

All Posts 2399 posts
AI 7 posts
AI Agent 2 posts
AI-based hotel recommendation 1 posts
AIForGood 1 posts
Alumni 60 posts
Animated Maps 1 posts
APIs 41 posts
Artificial Intelligence 2 posts
Artificial Intelligence 2 posts
AWS 13 posts
Banking 1 posts
Big Data 50 posts
Branch Analysis 1 posts
Capstone 206 posts
Career Education 7 posts
CLIP 1 posts
Community 72 posts
Congestion Zone 1 posts
Content Recommendation 1 posts
Cosine SImilarity 1 posts
Data Analysis 5 posts
Data Engineering 1 posts
Data Engineering 3 posts
Data Science 7 posts
Data Science News and Sharing 73 posts
Data Visualization 324 posts
Events 5 posts
Featured 37 posts
Function calling 1 posts
FutureTech 1 posts
Generative AI 5 posts
Hadoop 13 posts
Image Classification 1 posts
Innovation 2 posts
Kmeans Cluster 1 posts
LLM 6 posts
Machine Learning 364 posts
Marketing 1 posts
Meetup 144 posts
MLOPs 1 posts
Model Deployment 1 posts
Nagamas69 1 posts
NLP 1 posts
OpenAI 5 posts
OpenNYC Data 1 posts
pySpark 1 posts
Python 16 posts
Python 458 posts
Python data analysis 4 posts
Python Shiny 2 posts
R 404 posts
R Data Analysis 1 posts
R Shiny 560 posts
R Visualization 445 posts
RAG 1 posts
RoBERTa 1 posts
semantic rearch 2 posts
Spark 17 posts
SQL 1 posts
Streamlit 2 posts
Student Works 1687 posts
Tableau 12 posts
TensorFlow 3 posts
Traffic 1 posts
User Preference Modeling 1 posts
Vector database 2 posts
Web Scraping 483 posts
wukong138 1 posts

Our Recent Popular Posts

AI 4 AI: ChatGPT Unifies My Blog Posts
by Vinod Chugani
Dec 18, 2022
Meet Your Machine Learning Mentors: Kyle Gallatin
by Vivian Zhang
Nov 4, 2020
NICU Admissions and CCHD: Predicting Based on Data Analysis
by Paul Lee, Aron Berke, Bee Kim, Bettina Meier and Ira Villar
Jan 7, 2020

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 ChatGPT 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 football 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 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

NYC Data Science Academy

NYC Data Science Academy teaches data science, trains companies and their employees to better profit from data, excels at big data project consulting, and connects trained Data Scientists to our industry.

NYC Data Science Academy is licensed by New York State Education Department.

Get detailed curriculum information about our
amazing bootcamp!

Please enter a valid email address
Sign up completed. Thank you!

Offerings

  • HOME
  • DATA SCIENCE BOOTCAMP
  • ONLINE DATA SCIENCE BOOTCAMP
  • Professional Development Courses
  • CORPORATE OFFERINGS
  • HIRING PARTNERS
  • About

  • About Us
  • Alumni
  • Blog
  • FAQ
  • Contact Us
  • Refund Policy
  • Join Us
  • SOCIAL MEDIA

    ยฉ 2025 NYC Data Science Academy
    All rights reserved. | Site Map
    Privacy Policy | Terms of Service
    Bootcamp Application