A simple and efficient web scraping project using Selenium and BeautifulSoup to extract mobile phone data under ₹20,000 from Amazon India 🇮🇳 and export it to a clean .csv file for further analysis.
- ✅ Scrapes mobile phone listings from Amazon India
- ✅ Stores product HTML files locally
- ✅ Extracts product title, price, and link
- ✅ Outputs data to a structured
data.csvfile
amazon_mobile_scraper/
├── main.py # Display scraped product info
├── project.py # Fetch and save product HTML files
├── collection.py # Parse HTML and export to CSV
├── data/ # Folder storing HTML pages
└── data.csv # Final extracted output
git clone https://github.com/your-username/amazon-mobile-scraper.git
cd amazon-mobile-scraperpip install selenium beautifulsoup4 pandas✅ Google Chrome
✅ ChromeDriver (must match your Chrome version)
✅ A folder named data/ inside your project root
🔸 Step 1: Fetch and Save HTML Pages
python project.py🔸 Step 2: Parse HTML Files and Save to CSV
python collection.pyOpen data.csv to view the extracted data.
Title: Samsung Galaxy M35 5G
Price: ₹18,499
Link : https://www.amazon.in/...| Tool | Purpose |
|---|---|
| 🐍 Python | Core programming language |
| ⚙️ Selenium | Web automation and scraping |
| 🍜 BeautifulSoup | HTML parsing and data extraction |
| 📊 Pandas | Data manipulation and export |
Adithya Salian 💻 Passionate about web automation and data scraping. 📬 Feel free to connect on LinkedIn or explore my other projects.
You can modify the search query in project.py to scrape other products.
This project is for educational purposes only. Scraping websites without permission may violate their terms of service.
This project is open-source and free to use under the MIT License.