# metakrist/webautomation-scraping architecture

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

- Interactive diagram: https://gitdiagram.com/metakrist/webautomation-scraping
- Repository: https://github.com/metakrist/webautomation-scraping

## Overview

This is a daily-report scraper: a user runs the script with a date range and output filename; it automates back-office access, extracts win/loss data, calculates totals, and updates an Excel report. The README documents the workflow and technologies, but no source excerpts were provided, so the graph shows only documented relationships. All implementation nodes use the sole listed source path, `main`.

Main entry points: [`main`](https://github.com/metakrist/webautomation-scraping/blob/main/main) (Run with parameters)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_automation["Browser automation"]
  node_run["Run with parameters"]
  node_login["Automated login"]
  node_navigation["Back-office navigation"]
  node_date_picker["Date picker"]
end

subgraph group_reporting["Report processing"]
  node_scraping["Data scraping"]
  node_parsing["HTML table parsing"]
  node_date_handling["Date handling"]
  node_totals["Bet and payout totals"]
end

subgraph group_output["Output"]
  node_workbook["Excel report update"]
  node_formatting["Notebook formatting"]
end

node_user(("User"))
node_platform{{"Back-office platform"}}
node_excel_file["Excel report file"]
node_proxy{{"SOCKS5 proxy"}}
node_configuration["Sensitive configuration"]

node_user -->|"runs with dates"| node_run
node_run -->|"starts"| node_login
node_login -->|"authenticates"| node_platform
node_navigation -->|"navigates"| node_platform
node_date_picker -->|"sets date range"| node_platform
node_scraping -->|"extracts data"| node_platform
node_parsing -->|"parses HTML"| node_scraping
node_date_handling -->|"handles dates"| node_run
node_totals -->|"supplies totals"| node_workbook
node_workbook -->|"updates"| node_excel_file
node_formatting -->|"displays output"| node_user
node_proxy -.->|"routes traffic"| node_platform
node_configuration -.->|"provides settings"| node_run

click node_run "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_login "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_navigation "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_date_picker "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_scraping "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_parsing "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_date_handling "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_totals "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_workbook "https://github.com/metakrist/webautomation-scraping/blob/main/main"
click node_formatting "https://github.com/metakrist/webautomation-scraping/blob/main/main"

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_run,node_login,node_navigation,node_date_picker,node_user toneBlue
class node_scraping,node_parsing,node_date_handling,node_totals toneAmber
class node_workbook,node_formatting toneMint
class node_platform,node_excel_file,node_proxy,node_configuration toneIndigo
```

## Components

### Browser automation

- [Run with parameters](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [Automated login](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [Back-office navigation](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [Date picker](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`

### Report processing

- [Data scraping](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [HTML table parsing](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [Date handling](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [Bet and payout totals](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`

### Output

- [Excel report update](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`
- [Notebook formatting](https://github.com/metakrist/webautomation-scraping/blob/main/main): `main`

### Other components

- **User**
- **Back-office platform**
- **Excel report file**
- **SOCKS5 proxy**
- **Sensitive configuration**

## Connections

- User → Run with parameters: runs with dates (evidence: `README.md`)
- Run with parameters → Automated login: starts (evidence: `README.md`)
- Automated login → Back-office platform: authenticates (evidence: `README.md`)
- Back-office navigation → Back-office platform: navigates (evidence: `README.md`)
- Date picker → Back-office platform: sets date range (evidence: `README.md`)
- Data scraping → Back-office platform: extracts data (evidence: `README.md`)
- HTML table parsing → Data scraping: parses HTML (evidence: `README.md`)
- Date handling → Run with parameters: handles dates (evidence: `README.md`)
- Bet and payout totals → Excel report update: supplies totals (evidence: `README.md`)
- Excel report update → Excel report file: updates (evidence: `README.md`)
- Notebook formatting → User: displays output (evidence: `README.md`)
- SOCKS5 proxy → Back-office platform: routes traffic (evidence: `README.md`)
- Sensitive configuration → Run with parameters: provides settings (evidence: `README.md`)
