Consumer Insights Data From Amazon Product Results

Posted on Jul 30, 2020
The skills I demoed here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

LinkedInGitHubEmail

​​Introduction

I used Selenium to scrape the product results data from an Amazon query to gain customer insights and deliver a customized product. This query was done on all English Amazon sites. Data analysis was done in Jupyter Notebooks.

This project was a proof-of-concept to show that it is possible to gain consumer insights from Amazon product results that would then be used to create and deliver a customized product. 

Selenium was used to scrape the results from the query “improve my life” on the seven English Amazon sites.

Australia: https://www.amazon.com.au/s?k=improve+my+life 
Canada: https://www.amazon.ca/s?k=improve+my+life 
India: https://www.amazon.in/s?k=improve+my+life 
Singapore: https://www.amazon.sg/s?k=improve+my+life 
United Arab Emirates: https://www.amazon.ae/s?k=improve+my+life  United Kingdom: https://www.amazon.co.uk/s?k=improve+my+life 
United States: https://www.amazon.com/s?k=improve+my+life 

Datasets

There were three datasets in total. Two were the first page search results from each country, one of which was sorted by “Avg. Customer Review.” The last dataset included pages beyond the first page. 

Two stats indicate why the first two datasets were important despite their small size (https://www.webfx.com/blog/internet/amazon-search-result-infographic/):

  1. 54% of product searches start on Amazon versus traditional search engines like Google and Bing.
  2. 70% of Amazon customers never click past the first page of search results

It was important to collect unsorted data, as the results would largely be the result of Amazon’s ranking algorithm “A9” and advertising strategies, since there would not be any customer data to tailor results to. The products displayed would reflect a combination of what Amazon thinks I want to buy and what Amazon thinks I should buy. 

The data columns (variables) were as follows:

  • Country: Website Country
  • Title: Product Title
  • Rating: Customer Rating.
  • Price: Product Price
  • Sponsored: Sponsored Items (Boolean)
  • Form: Type of Product (i.e. Book)

The number of total search results and the number of items displayed on each page for each query were also stored.

Word Clouds Data 

I created word clouds from the text in the product titles to provide a visualization of the frequency of words per country. These word clouds only represent the multiple result pages, but one may be able to glean information if these were created for the first page results as well. If I were selling a book in this category I would want its title to include some of the largest words in my country of interest.

Consumer Insights Data From Amazon Product ResultsAustralia

Consumer Insights Data From Amazon Product ResultsCanada

Consumer Insights Data From Amazon Product Results

India

Singapore

UAE

United Kingdom

United States of America

Data Findings

Besides the obvious cultural differences that likely contributed to different word distributions, it would be interesting to see if one could determine any other factors at play. The following are some words that stood out to me:

Australia: Gratitude

Canada: Dragon (referring to child)

India: Visualization

Singapore: Healthy

UAE: Run

United Kingdom: Planner

United States: Guide

N-Grams

I made n-grams from the titles as well. An n-gram is a set of co-occurring words which are ranked according to the amount of times they appear in a given text. The images below would be more insightful if they were country-specific, rather than a collection of them all. That would be an avenue I would take in the future to aid in the data visualization. 

Unigram
Bigram

Data on Prices

I was interested in what I could garner from the pricing data to find an appropriate price for my own product. I converted the prices to US Dollars. From the graphs below it would make sense to price the product higher in the United Kingdom compared to a similar offering in India. 

What's Next?

The next step would be to continue exploratory data analysis on product reviews for books, as books were the overwhelming form present in the search results. Here’s what I’d do:

  • Scrape review and product data related to my query.
  • Focus on books with titles I’m interested in.
  • Extract customer sentiments from the review texts and determine what they appreciated the most about the books.
  • Determine what had the largest effect on product popularity and find patterns amongst the top and bottom products. Pricing, rating, responses to questions, number of reviews, pictures, product description, sponsored, and word choice are a few things to be considered.

About Author

Tyrone Wilkinson

| Data Scientist | I love tackling interesting problems. With a degree in Computer Science from Columbia University and background and IT experience spanning over 5 years, I now leap into AI. Contact me if you want to...
View all posts by Tyrone Wilkinson >

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