Data Scraping Pet Supplies Portal

Posted on Dec 13, 2017
The skills the author demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.


With spending on pets in the United States rising annually and projected to reach almost $100 billion by the end of the decade, data shows 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. Data Scraping Pet Supplies Portal

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
  • User Ratings of Product
  • Product Marketing Strategies


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

Food Texture

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)

Distribution of Ratings and Reviews

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.

Sentiment Analysis

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

Word Clouds

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

#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