Skip to content

yasharthbajpai/flipkart-scapper

Repository files navigation

Flipkart Product Scraper

A Python-based web scraping tool that automates product search and data extraction from Flipkart.com using Selenium and BeautifulSoup4.

Features

  • Automated Google search and navigation to Flipkart
  • Dynamic product search functionality
  • Extracts product names and prices
  • Clean data presentation
  • Error handling and timeout management

Requirements

  • Python 3.x
  • Selenium WebDriver
  • BeautifulSoup4
  • Requests
  • ChromeDriver

Installation

  1. Clone the repository

  2. Install required packages

  3. Download ChromeDriver

  • Download the appropriate version of ChromeDriver for your Chrome browser from ChromeDriver Downloads
  • Place the chromedriver.exe in your project directory

Usage

  1. Run the script

  2. Enter the product name when prompted

  3. Wait for the script to navigate and fetch results

  4. View the extracted product information

Sample Output

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

Project Structure

flipkart-scraper/ │ ├── flipkart_scraper.py # Main script ├── chromedriver.exe # Chrome WebDriver ├── requirements.txt # Package dependencies ├── License # License └── README.md # Documentation

Contributing

  1. Fork the repository
  2. Create a new branch
  3. Make your changes
  4. Submit a pull request

License

Creative Commons Zero v1.0 Universal

Author

Yasharth Bajpai

Disclaimer

This script is for educational purposes only. Please respect Flipkart's terms of service and robots.txt when using this script.

Acknowledgments

  • Selenium Documentation
  • BeautifulSoup4 Documentation
  • Python Requests Library
  • XLML Documentation

About

Flipkart scapper with the help of selenium, xpath and beautiful soup libraries

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages