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 https://www.flipkart.com/acnewclp-store 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:
- Downlaod the webpage using
requests
- parse the HTML source code using Beautiful Soup
- Extract topic names,star count and URLS from page
- Compile extracted information into Python lists and dictionaries
- Extract and combine data from multiple pages
- 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,https://www.flipkart.com/voltas-1-5-ton-3-star-split-inverter-ac-
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.commit(project="web-scraping-flipkart")
[jovian] Updating notebook "d-taram/web-scraping-flipkart2" on https://jovian.ai
[jovian] Committed successfully! https://jovian.ai/d-taram/web-scraping-flipkart2