This Flask application performs web scraping on Flipkart to retrieve product reviews based on user input. It utilizes the Flask web framework, Beautiful Soup for web scraping, and requests for making HTTP requests.
Make sure you have the following dependencies installed:
- Flask
- Flask-CORS
- requests
- BeautifulSoup4
You can install them using the following command:
pip install -r requirements.txt
-
Clone the repository:
git clone https://github.com/yourusername/your-repo.git
-
Navigate to the project directory:
cd your-repo
-
Run the Flask application:
python your_app_file.py
Replace
your_app_file.py
with the name of your Flask application file. -
Open your web browser and go to http://localhost:5000/ to access the application.
-
Access the homepage by visiting http://localhost:5000/.
-
Enter the product or content you want to search for in the provided input field.
-
Click the "Search" button.
-
The application will fetch reviews from Flipkart based on the provided input and display the results.
-
Homepage: Provides a simple user interface with an input field to enter the search query.
-
Review Page: Retrieves reviews from Flipkart for the specified product and displays them on the results page.
-
Logging: The application logs relevant information, including any errors encountered during the scraping process, into a log file (
scrapper.log
).
Feel free to open issues or contribute to the project by submitting pull requests. Your feedback and contributions are welcome!