aravind-selvam / flipkart_webscrapper

Built an Flask app where user can search for any product's reviews listed on Flipkart website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flipkart Review Scrapper

This is a flask based app to scrap user reviews and comments from a retail website and generates word-cloud with CSV data. The data that was gathered is available to download as well.

Prerequisites

  1. Environment setup.
conda create --prefix ./env python=3.8 -y
conda activate ./env
  1. Install Requirements
pip install -r requirements.txt
  1. Run setup to make internal packages usable
pip install -e .
  1. Run App windows
python app.py 

Mac/linux

python3 app.py 

Docker Integration

  1. Build Image
docker build -t Image_name .
  1. Create and run container
docker run -p 8000:8080 Image_name
  1. Stop running container
docker stop container_ID
  1. Start container
docker start container_ID

Flow Chart

flowchart

Project Folder structure

├── scraper/
│   ├── data_access/
│   │   ├── __init__.py
│   │   └── data_access.py
│   ├── enitity/
│   │   ├── __init__.py
│   │   └── entity.py
│   ├── exception/
│   │   ├── __init__.py
│   │   └── exception.py
│   ├── logging/
│   │   ├── __init__.py
│   │   └── logging.py
│   ├── logic/
│   │   ├── __init__.py
│   │   └── business_logic.py
│   ├── tests/
│   │   ├── __init__.py
│   │   └── tests.py
│   └── utils/
│       └── __init__.py
└── __init__.py

Running the tests

Navigate to flipkart_scrapper_testing/tests.py

python tests.py

Be sure that your app is running. Results after running tests.py

image

Interface

image image image

Built With

  1. FastApi
  2. Python
  3. Html
  4. Css
  5. shell script

Authors

Aravind S

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Built an Flask app where user can search for any product's reviews listed on Flipkart website

License:MIT License


Languages

Language:Python 100.0%