# sheth007/ecommerce-price-scraper architecture

> Architecture diagram of the GitHub repository sheth007/ecommerce-price-scraper, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sheth007/ecommerce-price-scraper
- Repository: https://github.com/sheth007/ecommerce-price-scraper

## Overview

This repository is a product-price comparison scraper with CLI, Tkinter desktop, and Flask web interfaces. Users submit a product query; the selected interface invokes retailer-specific scraping, gathers product price details, and presents results. The desktop app also offers a quick-commerce search path. The Web_Ui implementation separates its Flask routes from four retailer scrapers. The CLI and desktop e-commerce implementations bundle multiple retailer scrapers into single files. Only sampled source and README relationships are shown; unsampled modules are represented only where the README documents the capability.

Main entry points: [`Price Scraper - Web_Ui/app.py`](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/app.py) (Web routes), [`Price Scraper - Gui/E_Commerce.py`](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/E_Commerce.py) (Desktop commerce), [`Price Scraper - Gui/Quick_Commerce.py`](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/Quick_Commerce.py) (Desktop quick), [`Price Scraper - Gui/Main.py`](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/Main.py) (Desktop chooser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_gui_launcher["Desktop chooser<br/>[Main.py]"]
  node_gui_ecommerce["Desktop commerce<br/>[E_Commerce.py]"]
  node_cli_commerce["CLI commerce<br/>[E_Commerce.py]"]
  node_cli_api["Price API"]
  node_web_routes["Web routes<br/>[app.py]"]
  node_web_pages["Web pages<br/>[index.html]"]
  node_web_status["Search status page<br/>[status.html]"]
end

subgraph group_commerce["Commerce scraping"]
  node_commerce_sites["Commerce sites"]
end

subgraph group_quick["Quick commerce"]
  node_gui_quick["Desktop quick<br/>[Quick_Commerce.py]"]
  node_quick_sites["Quick-commerce sites"]
end

subgraph group_web["Web scraping"]
  node_amazon["Amazon scraper<br/>[amazon.py]"]
  node_flipkart["Flipkart scraper<br/>[flipkart.py]"]
  node_jiomart["JioMart scraper<br/>[jiomart.py]"]
  node_croma["Croma scraper<br/>[croma.py]"]
  node_web_config["Query config<br/>[config.py]"]
end

node_user(("Product shopper"))

node_user -->|"chooses mode"| node_gui_launcher
node_gui_launcher -->|"launches"| node_gui_ecommerce
node_gui_launcher -->|"launches"| node_gui_quick
node_user -->|"enters query"| node_gui_ecommerce
node_gui_ecommerce -->|"scrapes prices"| node_commerce_sites
node_gui_ecommerce -->|"shows results"| node_user
node_user -->|"enters query"| node_gui_quick
node_gui_quick -->|"scrapes prices"| node_quick_sites
node_gui_quick -->|"shows results"| node_user
node_user -->|"enters query"| node_cli_commerce
node_cli_commerce -->|"scrapes prices"| node_commerce_sites
node_cli_commerce -->|"prints results"| node_user
node_user -->|"requests prices"| node_cli_api
node_cli_api -->|"scrapes prices"| node_commerce_sites
node_cli_api -->|"returns JSON"| node_user
node_user -->|"submits query"| node_web_routes
node_web_routes -->|"renders search"| node_web_pages
node_web_routes -->|"renders status"| node_web_status
node_web_routes -->|"calls scraper"| node_amazon
node_web_routes -->|"calls scraper"| node_flipkart
node_web_routes -->|"calls scraper"| node_jiomart
node_web_routes -->|"calls scraper"| node_croma
node_amazon -->|"searches products"| node_commerce_sites
node_flipkart -->|"searches products"| node_commerce_sites
node_jiomart -->|"searches products"| node_commerce_sites
node_croma -->|"searches products"| node_commerce_sites
node_web_routes -->|"returns prices"| node_user
node_web_config -.->|"stores query"| node_user

click node_gui_launcher "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/Main.py"
click node_gui_ecommerce "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/E_Commerce.py"
click node_gui_quick "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/Quick_Commerce.py"
click node_cli_commerce "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Cli/E_Commerce.py"
click node_cli_api "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Cli/E_Commerce_Postman_Api.py"
click node_web_routes "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/app.py"
click node_web_pages "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/templates/index.html"
click node_web_status "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/templates/status.html"
click node_amazon "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/amazon.py"
click node_flipkart "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/flipkart.py"
click node_jiomart "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/jiomart.py"
click node_croma "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/croma.py"
click node_web_config "https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/config.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_gui_launcher,node_gui_ecommerce,node_cli_commerce,node_cli_api,node_web_routes,node_web_pages,node_web_status toneBlue
class node_commerce_sites toneAmber
class node_gui_quick,node_quick_sites toneMint
class node_amazon,node_flipkart,node_jiomart,node_croma,node_web_config toneRose
class node_user toneIndigo
```

## Components

### User interfaces

- [Desktop chooser](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/Main.py): `Price Scraper - Gui/Main.py`
- [Desktop commerce](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/E_Commerce.py): `Price Scraper - Gui/E_Commerce.py`
- [CLI commerce](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Cli/E_Commerce.py): `Price Scraper - Cli/E_Commerce.py`
- [Price API](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Cli/E_Commerce_Postman_Api.py): `Price Scraper - Cli/E_Commerce_Postman_Api.py`
- [Web routes](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/app.py): `Price Scraper - Web_Ui/app.py`
- [Web pages](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/templates/index.html): `Price Scraper - Web_Ui/templates/index.html`
- [Search status page](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/templates/status.html): `Price Scraper - Web_Ui/templates/status.html`

### Commerce scraping

- **Commerce sites**

### Quick commerce

- [Desktop quick](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Gui/Quick_Commerce.py): `Price Scraper - Gui/Quick_Commerce.py`
- **Quick-commerce sites**

### Web scraping

- [Amazon scraper](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/amazon.py): `Price Scraper - Web_Ui/amazon.py`
- [Flipkart scraper](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/flipkart.py): `Price Scraper - Web_Ui/flipkart.py`
- [JioMart scraper](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/jiomart.py): `Price Scraper - Web_Ui/jiomart.py`
- [Croma scraper](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/croma.py): `Price Scraper - Web_Ui/croma.py`
- [Query config](https://github.com/sheth007/ecommerce-price-scraper/blob/main/Price%20Scraper%20-%20Web_Ui/config.py): `Price Scraper - Web_Ui/config.py`

### Other components

- **Product shopper**

## Connections

- Product shopper → Desktop chooser: chooses mode (evidence: `Price Scraper - Gui/Main.py`)
- Desktop chooser → Desktop commerce: launches (evidence: `Price Scraper - Gui/Main.py`)
- Desktop chooser → Desktop quick: launches (evidence: `Price Scraper - Gui/Main.py`)
- Product shopper → Desktop commerce: enters query (evidence: `Price Scraper - Gui/E_Commerce.py`)
- Desktop commerce → Commerce sites: scrapes prices (evidence: `Price Scraper - Gui/E_Commerce.py`)
- Desktop commerce → Product shopper: shows results (evidence: `Price Scraper - Gui/E_Commerce.py`)
- Product shopper → Desktop quick: enters query (evidence: `Price Scraper - Gui/Quick_Commerce.py`)
- Desktop quick → Quick-commerce sites: scrapes prices (evidence: `Price Scraper - Gui/Quick_Commerce.py`)
- Desktop quick → Product shopper: shows results (evidence: `Price Scraper - Gui/Quick_Commerce.py`)
- Product shopper → CLI commerce: enters query (evidence: `Price Scraper - Cli/E_Commerce.py`)
- CLI commerce → Commerce sites: scrapes prices (evidence: `Price Scraper - Cli/E_Commerce.py`)
- CLI commerce → Product shopper: prints results (evidence: `Price Scraper - Cli/E_Commerce.py`)
- Product shopper → Price API: requests prices (evidence: `Price Scraper - Cli/E_Commerce_Postman_Api.py`)
- Price API → Commerce sites: scrapes prices (evidence: `Price Scraper - Cli/E_Commerce_Postman_Api.py`)
- Price API → Product shopper: returns JSON (evidence: `Price Scraper - Cli/E_Commerce_Postman_Api.py`)
- Product shopper → Web routes: submits query (evidence: `Price Scraper - Web_Ui/app.py`)
- Web routes → Web pages: renders search (evidence: `Price Scraper - Web_Ui/app.py`)
- Web routes → Search status page: renders status (evidence: `Price Scraper - Web_Ui/app.py`)
- Web routes → Amazon scraper: calls scraper (evidence: `Price Scraper - Web_Ui/app.py`)
- Web routes → Flipkart scraper: calls scraper (evidence: `Price Scraper - Web_Ui/app.py`)
- Web routes → JioMart scraper: calls scraper (evidence: `Price Scraper - Web_Ui/app.py`)
- Web routes → Croma scraper: calls scraper (evidence: `Price Scraper - Web_Ui/app.py`)
- Amazon scraper → Commerce sites: searches products (evidence: `Price Scraper - Web_Ui/amazon.py`)
- Flipkart scraper → Commerce sites: searches products (evidence: `Price Scraper - Web_Ui/flipkart.py`)
- JioMart scraper → Commerce sites: searches products (evidence: `Price Scraper - Web_Ui/jiomart.py`)
- Croma scraper → Commerce sites: searches products (evidence: `Price Scraper - Web_Ui/croma.py`)
- Web routes → Product shopper: returns prices (evidence: `Price Scraper - Web_Ui/app.py`)
- Query config → Product shopper: stores query
