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

Your email address will not be published. Required fields are marked *

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags