Web Scrapping_Task-1
Web Scraping is the automated technique of extracting structured data from web pages. It involves sending a request to a website, retrieving its HTML content, and parsing it to collect specific information that is displayed on the page.
You performed web scraping on the official AckoDrive website, specifically targeting the Kia cars collection page. The goal was to extract comprehensive information about each car model listed for sale.
Objective:-
To collect detailed attributes of Kia cars listed online and store them in a structured format for analysis or reporting.
Process:-
1. Website Access
You accessed the webpage containing Kia car listings by sending a request to the URL. This allowed you to fetch the raw HTML content of the page.
2. HTML Parsing
You parsed the retrieved HTML using a parser (like BeautifulSoup) to navigate the DOM (Document Object Model) and identify the relevant sections containing car details.
3. Locating Data Blocks
Each car listing was enclosed in a specific HTML div tag. These containers were identified using unique attributes (data-testid="listingcardesktop"), which helped isolate each car's data.
4. Extracting Car Information
From each container, you extracted the following key attributes:
Model Name (e.g., Kia Sonet)
Car Type (e.g., SUV)
Fuel Type (e.g., Petrol, Diesel, Electric)
Transmission (e.g., Manual, Automatic)
Price (e.g., ₹9.50 L)
Location (e.g., in Delhi)
Seating Capacity (e.g., 5 Seater, 7 Seater)
5. Structuring the Data
All extracted information was organized into a structured data format (a table-like structure using a DataFrame) for easy interpretation and usage.
6. Saving the Data
Finally, the structured data was exported into a CSV file (all_car.csv) to enable further analysis, visualization, or reporting.

