A Python script to scrape product reviews from Flipkart. This script allows you to collect user reviews for a product and save them to a CSV file for analysis or other purposes.
- Python 3.x
- Beautiful Soup
- Requests
- Pandas (optional, for data manipulation)
You can install the required libraries using pip:
pip install beautifulsoup4 requests pandas
Usage
Clone the repository:
git clone https://github.com/your-username/flipkart-reviews-scraper.git
Navigate to the project directory:
cd flipkart-reviews-scraper
Run the script:
python flipkart_reviews_scraper.py
Follow the prompts to enter the product URL.
Features
Scrapes reviews from Flipkart product pages.
Saves reviews to a CSV file for easy analysis.
Error handling for HTTP requests and general exceptions.
Customizable with options for maximum pages to scrape.
Contributing
Contributions are welcome! Please follow the Contribution Guidelines for details on how to contribute to this project.
License
This project is licensed under the MIT License - see the LICENSE.txt file for details.
Code of Conduct
Please review our Code of Conduct before contributing to the project.