Sign In

Web Scraping Flipkart 1

Scraping Categories of Air Conditioners on Flipkart using Python

Web scraping is the process of extracting and parsing data from websites in an automated fashion using a computer program. It's a useful technique for creating datasets for research and learning.

Flipkart is an Indian e-commerce websites,where initially focused on online book sales before expanding into other product categories such as consumer electronics, fashion, home essentials, groceries, and lifestyle products.

The page provides a list of the categories of Air conditioners on Flipkart. In this project, we'll retrive information from this page using web scraping: the process of extracting information from a website in an automated fashion using code. we'll use the Python libraries Requests and BeautifulSoup to scrape data from this page.

Here's an Outline of the step we'll follow:

  1. Downlaod the webpage using requests
  2. parse the HTML source code using Beautiful Soup
  3. Extract topic names,star count and URLS from page
  4. Compile extracted information into Python lists and dictionaries
  5. Extract and combine data from multiple pages
  6. save the extracted information to a CSV file.

By the end of the project, we'll create a CSV file in the following format:

title,number of star,url
voltas 1.5 Ton 3 star split inverterAC-white,4.3,

How to run the code.

You can execute the code using the "Run" button at the top of this page. You can make changes and save your own version of the notebook to Jovian by executing the following cells:

!pip install jovian --upgrade --quiet
import jovian
[jovian] Updating notebook "d-taram/web-scraping-flipkart2" on [jovian] Committed successfully!
d-taram6 months ago