# onetop4458/ppomppu-macro2 architecture

> Architecture diagram of the GitHub repository onetop4458/ppomppu-macro2, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/onetop4458/ppomppu-macro2
- Repository: https://github.com/onetop4458/ppomppu-macro2

## Overview

##### Core Components
- Selenium WebDriver (Main Automation Engine)
- Chrome Browser Instance
- Configuration Management
- Comment Management System

##### External Dependencies
- Chrome Browser
- Ppomppu Website
- Python Runtime Environment

##### Specific Flows

- [Config Files] → [run_macro.py] → [Selenium WebDriver] → [Chrome Browser] → [Ppomppu Website]

##### Technical Details
- 70-second timing interval
- Base64 encoding for credentials
- Chrome WebDriver version dependency

##### Important Notes
- Authentication flow
- Comment posting cycle
- Error handling paths
- Version dependencies between Chrome and ChromeDriver

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Configuration
        Config["config.json"]
        Comments["config_comment.txt"]
    end

    subgraph "Core Application"
        RunMacro["run_macro.py"]
        WebDriver["Selenium WebDriver"]
        ErrorHandler["Error Handling"]
    end

    subgraph "External Systems"
        Chrome["Chrome Browser"]
        Website["Ppomppu Website"]
        Python["Python Runtime"]
    end

    %% Connections
    Config -->|"Load Credentials<br/>(Base64 Encoded)"| RunMacro
    Comments -->|"Load Comments"| RunMacro
    RunMacro -->|"Control"| WebDriver
    WebDriver -->|"Automate"| Chrome
    Chrome -->|"70s Interval<br/>Interactions"| Website
    Python -->|"Executes"| RunMacro
    ErrorHandler -.->|"Monitor"| WebDriver
    ErrorHandler -.->|"Monitor"| Chrome

    %% Click Events
    click Config "https://github.com/OneTop4458/ppomppu-macro2/blob/master/config.json"
    click Comments "https://github.com/OneTop4458/ppomppu-macro2/blob/master/config_comment.txt"
    click RunMacro "https://github.com/OneTop4458/ppomppu-macro2/blob/master/run_macro.py"
    click WebDriver "https://github.com/OneTop4458/ppomppu-macro2/blob/master/chromedriver.exe"
    click Python "https://github.com/OneTop4458/ppomppu-macro2/blob/master/python-3.8.0.zip"

    %% Styling
    classDef config fill:#90EE90,stroke:#333,stroke-width:2px
    classDef core fill:#87CEEB,stroke:#333,stroke-width:2px
    classDef external fill:#DCDCDC,stroke:#333,stroke-width:2px
    classDef error fill:#FFB6C1,stroke:#333,stroke-width:2px

    class Config,Comments config
    class RunMacro,WebDriver core
    class Chrome,Website,Python external
    class ErrorHandler error

    %% Legend
    subgraph Legend
        L1["Configuration Components"]:::config
        L2["Core Components"]:::core
        L3["External Systems"]:::external
        L4["Error Handling"]:::error
    end
```
