Scraping Pet Supplies Portal

Chung Meng Lim
Posted on Dec 13, 2017

With spending on pets in the United States rising annually and projected to reach almost $100 billion by the end of the decade, the pet industry is considered virtually recession-resistant. It feeds on factors such as the multi-generational appeal of pets, the positive correlation between good human health and pet ownership, and a pet culture that spawns spending on luxury goods for animals and global expansion.

Riding on the back of the lucrative pet supplies industry is the online portal With a wide product offering from leading brands, it is where pet lovers shop. For this project, I used Scrapy to Web Scrape pages on Canned Dog Food at

The main objectives were to uncover:

  • Market Shares
  • Product Segments
  • Product User Ratings
  • Product Marketing Strategies

Key targeted information obtained include Product Name, Maker, Food Texture, Price, Weight, Rating, Number of Reviews, Product Key Benefits.

A total of 780 products are offered by the Top 20 Brands in this segment. Most notable are Bill's Buffalo and Purina with about 100 products each. They are followed by names like Cesar, Wellness and Hill's.

The Canned Dog Food segment is a highly differentiated market. Owners can choose from a selection of food texture to match their pet's discerning palate. Presumably the most favored texture is Pate followed by Stew, Chunks in Gravy, Minced and Shredded in descending order.

Number of Reviews and Average Ratings are both equally important indicators of the Product Popularity. A combined score was formulated with components of both metrics using the equation

Score=Rating + 5*(1−e(Reviews/Q))
where Q is a tuning constant
(Score : 0 - 10)

Highly skewed Distributions of Ratings & Reviews are transformed into a Normally Distributed Score. The upper range of the distribution approaches a score of 10 for products.

Based on the Formulated Score, I was able to distinguish the Top 30 Best Scoring Products across Brands and Food Texture. Hill's Prescription Diet emerges as a clear winner in the most popular segments, that is Pate and Stew. Purina holds it on its own in the Minced segment. Royal Canin deserves to be mentioned with popular products in Chunks & Gravy as well as Pate. Notably, Cesar is missing from this list despite having a large number of Products.

It is undeniable that Customer Reviews and Feedbacks are highly valuable encompassing both Positive and Negative ones. Sentiment Analysis was performed on selected reviews.

Additionally, Word Clouds were used to provide interesting insights on most commonly used words in: Positive Reviews

Negative Reviews

Product Key Benefits (Marketing)


About Author

Chung Meng Lim

Chung Meng Lim

Chung Meng has a Masters in Electronics Engineering. He is forging a path in the exciting field of Data Science.
View all posts by Chung Meng Lim >

Related Articles

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

2019 airbnb alumni Alumni Interview Alumni Spotlight alumni story Alumnus API artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Big Data bootcamp Bootcamp Prep Bundles California Cancer Research capstone Career citibike clustering Coding Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Industry Experts Job JP Morgan Chase Kaggle 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 Open Data painter pandas Portfolio Development prediction 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 recommendation recommendation system regression Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Tableau Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping What to expect word cloud word2vec XGBoost yelp