A Python-based web scraping tool that automates product search and data extraction from Flipkart.com using Selenium and BeautifulSoup4.
- Automated Google search and navigation to Flipkart
- Dynamic product search functionality
- Extracts product names and prices
- Clean data presentation
- Error handling and timeout management
- Python 3.x
- Selenium WebDriver
- BeautifulSoup4
- Requests
- ChromeDriver
-
Clone the repository
-
Install required packages
-
Download ChromeDriver
- Download the appropriate version of ChromeDriver for your Chrome browser from ChromeDriver Downloads
- Place the chromedriver.exe in your project directory
-
Run the script
-
Enter the product name when prompted
-
Wait for the script to navigate and fetch results
-
View the extracted product information
Enter the item you want to search: laptop Found 24 products: Product: HP Pavilion Gaming Core i5 11th Gen Price: ₹59,990 Product: ASUS TUF Gaming F15 Price: ₹54,990
flipkart-scraper/ │ ├── flipkart_scraper.py # Main script ├── chromedriver.exe # Chrome WebDriver ├── requirements.txt # Package dependencies ├── License # License └── README.md # Documentation
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request
Creative Commons Zero v1.0 Universal
Yasharth Bajpai
This script is for educational purposes only. Please respect Flipkart's terms of service and robots.txt when using this script.
- Selenium Documentation
- BeautifulSoup4 Documentation
- Python Requests Library
- XLML Documentation