Skip to content

Analyzed the sentiment of customers of Bombay Shaving Company who purchased the Sensi Smart 3 razor , by webscrapping product reviews from Filpkart using selenium library of python.

Notifications You must be signed in to change notification settings

DarrnP/Sensi-Smart-3-Sentiment-Analysis

Repository files navigation

BSC Sensi Smart 3 Sentiment Analysis

Unguided project

Image

Made a dashboard in Power BI to analyse the sentiment around sensi smart 3 from Bombay Shaving Company, by scrapping the reviews of the product from flipkart.

The razor has been marketed as best shaving experience for sensitive skin and very budget friendly but is that truly the case did the customers resonate with that view, I tried to figure it out with this project.

How I got the data

We can carry out the scraping process by selecting the containers for the various elements in the page and set a for loop to loop through the containers.

Now to extract the required content from the containers we use an inbuilt selenium function find_elements

Scarping the reviews

We can carry out the scraping process by selecting the containers for the various elements in the page and set a for loop to loop through the containers.

Now to extract the required content from the containers we use an inbuilt selenium function find_elements.

Below I have mentioned the py code for the same.

Image

Scarping the date and place of reviews

Used the inbuilt XPATH function to extract the date and place of review together since both were present in the same class ‘row gHqwa8’, then used a try and except clause incase there was no review found at that particular class.

Below I have mentioned the py code for the same.

Image

Giving each reveiw a sentiment score

To give each review a sentiment score I used Textblob using its inbuilt polarity funciton which gives a polarity. Here polarity is a number lying between [-1,1] where -1 is bad sentiment and 1 is positive sentiment.

Below is the py code for the same.

Image

About

Analyzed the sentiment of customers of Bombay Shaving Company who purchased the Sensi Smart 3 razor , by webscrapping product reviews from Filpkart using selenium library of python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published