Mechanical Keyboard Picker - A Web Scraping and WebApp Project

Derek Li
Posted on Jan 3, 2019

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 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.

“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
  • Keycap material
  • 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 finds

Top 5 highest rated brands are:

Top 5 most reviewed brands are:

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

2019 airbnb alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws 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 Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R 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 Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp