# ranjananagarajan/gstr2b-bulk-downloader_automation_rpa architecture

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

- Interactive diagram: https://gitdiagram.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa
- Repository: https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa

## Overview

This is a single-script Selenium utility for downloading GSTR-2B Excel files across multiple GST registrations and selected tax periods. The operator supplies a credentials workbook and period selection; the script guides portal login, including manual CAPTCHA or OTP, navigates to the Returns Dashboard and GSTR-2B summary, downloads files, and records outcomes. The README documents the overall workflow and outputs; the sampled source confirms parts of login, navigation, download handling, and orchestration. Unsampled internal boundaries are represented as capabilities of the single script, not separate modules.

Main entry points: [`GSTR2B_Excel_Automation.py`](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py) (Automation workflow), [`Sample_GSTIN_Credentials.xlsx`](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/Sample_GSTIN_Credentials.xlsx) (Credentials workbook)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs and interaction"]
  node_credentials["Credentials workbook"]
  node_automation["Automation workflow"]
  node_period_input["Period selection"]
  node_verification["Manual verification UI"]
end

subgraph group_portal["Portal automation"]
  node_chrome["Chrome browser"]
  node_gst_portal["GST Portal"]
  node_portal_login["Portal login"]
  node_dashboard["Returns Dashboard"]
  node_period_filters["Year and month filters"]
  node_summary["GSTR-2B summary"]
  node_excel_download["Excel download action"]
end

subgraph group_outputs["Downloads and records"]
  node_downloaded_files["Organized Excel files"]
  node_download_log["Download log"]
  node_diagnostics["Screenshots and HTML"]
end

node_operator(("Operator"))

node_operator -->|"runs"| node_automation
node_operator -->|"prepares"| node_credentials
node_credentials -->|"provides credentials"| node_automation
node_operator -->|"enters period"| node_period_input
node_period_input -->|"provides selection"| node_automation
node_automation -->|"starts browser"| node_chrome
node_automation -->|"automates login"| node_portal_login
node_portal_login -->|"opens session"| node_gst_portal
node_portal_login -->|"requests CAPTCHA"| node_verification
node_operator -->|"completes checks"| node_verification
node_verification -->|"submits verification"| node_gst_portal
node_automation -->|"navigates to"| node_dashboard
node_dashboard -->|"selects period"| node_period_filters
node_period_filters -->|"opens with VIEW"| node_summary
node_summary -->|"offers download"| node_excel_download
node_automation -->|"triggers download"| node_excel_download
node_excel_download -->|"saves and renames"| node_downloaded_files
node_automation -->|"records outcomes"| node_download_log
node_automation -->|"saves on errors"| node_diagnostics

click node_credentials "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/Sample_GSTIN_Credentials.xlsx"
click node_automation "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_period_input "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_verification "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_portal_login "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_dashboard "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_period_filters "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_summary "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_excel_download "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_downloaded_files "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_download_log "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py"
click node_diagnostics "https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.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_credentials,node_automation,node_period_input,node_verification toneBlue
class node_chrome,node_gst_portal,node_portal_login,node_dashboard,node_period_filters,node_summary,node_excel_download toneAmber
class node_downloaded_files,node_download_log,node_diagnostics toneMint
class node_operator toneIndigo
```

## Components

### Inputs and interaction

- [Credentials workbook](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/Sample_GSTIN_Credentials.xlsx): `Sample_GSTIN_Credentials.xlsx`
- [Automation workflow](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Period selection](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Manual verification UI](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`

### Portal automation

- **Chrome browser**
- **GST Portal**
- [Portal login](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Returns Dashboard](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Year and month filters](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [GSTR-2B summary](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Excel download action](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`

### Downloads and records

- [Organized Excel files](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Download log](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`
- [Screenshots and HTML](https://github.com/ranjananagarajan/gstr2b-bulk-downloader_automation_rpa/blob/main/GSTR2B_Excel_Automation.py): `GSTR2B_Excel_Automation.py`

### Other components

- **Operator**

## Connections

- Operator → Automation workflow: runs (evidence: `README.md`)
- Operator → Credentials workbook: prepares (evidence: `README.md`)
- Credentials workbook → Automation workflow: provides credentials (evidence: `README.md`)
- Operator → Period selection: enters period (evidence: `README.md`)
- Period selection → Automation workflow: provides selection (evidence: `README.md`)
- Automation workflow → Chrome browser: starts browser (evidence: `README.md`)
- Automation workflow → Portal login: automates login (evidence: `GSTR2B_Excel_Automation.py`)
- Portal login → GST Portal: opens session (evidence: `README.md`)
- Portal login → Manual verification UI: requests CAPTCHA (evidence: `README.md`)
- Operator → Manual verification UI: completes checks (evidence: `README.md`)
- Manual verification UI → GST Portal: submits verification (evidence: `README.md`)
- Automation workflow → Returns Dashboard: navigates to (evidence: `GSTR2B_Excel_Automation.py`)
- Returns Dashboard → Year and month filters: selects period (evidence: `README.md`)
- Year and month filters → GSTR-2B summary: opens with VIEW (evidence: `README.md`)
- GSTR-2B summary → Excel download action: offers download (evidence: `README.md`)
- Automation workflow → Excel download action: triggers download (evidence: `GSTR2B_Excel_Automation.py`)
- Excel download action → Organized Excel files: saves and renames (evidence: `README.md`)
- Automation workflow → Download log: records outcomes (evidence: `README.md`)
- Automation workflow → Screenshots and HTML: saves on errors (evidence: `README.md`)
