Data Webscraping for Mechanical Keyboard

Posted on Jan 3, 2019
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

Introduction:

I am a mechanical keyboard enthusiastic and I often introduce mechanical keyboards to my friends. However, the mechanical keyboard market is so diverse and filled with different data, so finding the perfect keyboard just for the person is quite a daunting task.

So I thought, why don’t I find a place with all kinds of keyboards available, use my knowledge of mechanical keyboards, categorize them and make a keyboard picker/recommendation system?

 

Scraping the data:

I chose “mechanicalkeyboards.com” as the website to scrape. Based in Tennessee, “mechanicalkeyboards.com” is one of the largest mechanical keyboard vendors in the United States. It offers not only pre-built complete keyboards but also parts and accessories for mechanical keyboards.

Data Webscraping for Mechanical Keyboard

“Mechanicalkeyboards.com” has a simple and efficient architecture. Since it does not use REST API to retrieve the product listings, I decided to use Scrapy in Python to scrape the website.

I collected 797 listings from the online shop, with their:

  • Id
  • Product name
  • Brand
  • Model
  • Mechanical switch type
  • Price
  • Material of Keycap
  • Keycap legend color
  • Keycap printing method
  • Frame color
  • Interface
  • Dimension
  • Weight
  • Average rating
  • Number of reviews

Using the information on hand, I made a shiny webApp for picking a mechanical keyboard. Also, check out my the GitHub repo for the code.

Some interesting data finds

Top 5 highest rated brands are:

Data Webscraping for Mechanical Keyboard

Top 5 most reviewed brands are:

Data Webscraping for Mechanical Keyboard

Notice these five are the all-star brands from the website.

For mechanical keyboards, the mechanical switches for the keys are the defining component. We see that the most offered mechanical switch brand is Cherry, which is the industry leader in producing the mechanical keyboard switches.

However, we see that Cherry mechanical switches are not the most expensive switches that the website offers. The electrostatic switches offered by Topre has the highest average price. We also see KBT, Gateron, and Kailh, which are Cherry knockoffs have generally lower average price.

While keyboards using no lighting or white lighting has the highest average price, keyboards using multi-colored lighting has the lowest average price.

And while keyboards using blue lighting has the highest overall rating, keyboards using pink lighting has the lowest overall rating.

Future works

Some NLP analysis using product reviews, and incorporate them into the shiny app.

 

About Author

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