Web Scrapping using Python

Comparing Product Prices.

Here we have taken Casio MJ 12D Calculator

Importing the required Libraries

Taking URL from Sites

To get user-agent , google my user agent

Amazon

Now go to the Amazon page, right-click on the product price, and inspect, and find the element with id/class. Replace the element name and id accordingly. (Example : price = soup.find('div', id = "ProductPrice")

Step by step to scrape out Price from tags

Similarly , following the same steps , we will scrape out prices from rest of the websites.

Flipkart

Moglix

On Shop Deals

Stamo

Analysis of Results

Pandas is a python library used to analyze data. We will be using pandas to represent our findings in a formatted way and analyzing through it.

Now we will create a DataFrame out of the data we have extracted

To find the best price out of our findings , we will use the functions

Hence, the website with the minimum price is displayed.

Visualising the Results

From the above bar-chart , we may see that On Shop Deals is having the least price