# jarvisstar/instagram-reporter architecture

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

- Interactive diagram: https://gitdiagram.com/jarvisstar/instagram-reporter
- Repository: https://github.com/jarvisstar/instagram-reporter

## Overview

This is a command-line Instagram reporting tool. The user selects profile or video reporting, chooses whether to harvest proxies or load them from a file, and the entry point launches worker processes that submit reports. Supporting code provides proxy collection, user-agent selection, terminal prompts/status output, startup dependency checks, and a banner. The submission implementation and its Facebook/Instagram requests are visible in the sampled source; README-described capabilities are included, but unsampled internals are not assumed.

Main entry points: [`instagram-reporter.py`](https://github.com/jarvisstar/instagram-reporter/blob/main/instagram-reporter.py) (CLI orchestrator), [`libs/attack.py`](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py) (Report submission), [`libs/utils.py`](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/utils.py) (Prompts and status), [`libs/proxy_harvester.py`](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/proxy_harvester.py) (Proxy harvesting)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Reporting workflow"]
  node_entry["CLI orchestrator"]
  node_profile["Profile reporting<br/>[attack.py]"]
  node_video["Video reporting<br/>[attack.py]"]
  node_submit["Report submission<br/>[attack.py]"]
end

subgraph group_support["Supporting services"]
  node_proxyfile["Proxy file parsing<br/>[utils.py]"]
  node_harvester["Proxy harvesting<br/>[proxy_harvester.py]"]
  node_agents["User-agent selection<br/>[user_agents.py]"]
  node_utilities["Prompts and status<br/>[utils.py]"]
  node_modules["Dependency checks<br/>[check_modules.py]"]
  node_logo["Banner display<br/>[logo.py]"]
end

subgraph group_remote["External services"]
  node_facebook["Facebook web"]
  node_instagram["Instagram reporting endpoint"]
end

node_user(("CLI user"))

node_user -->|"selects options"| node_entry
node_entry -->|"checks dependencies"| node_modules
node_entry -->|"prints banner"| node_logo
node_entry -->|"prompts and reports"| node_utilities
node_entry -->|"requests proxies"| node_harvester
node_entry -->|"parses proxy file"| node_proxyfile
node_entry -->|"dispatches profile"| node_profile
node_entry -->|"dispatches video"| node_video
node_profile -->|"submits profile report"| node_submit
node_video -->|"submits video report"| node_submit
node_submit -->|"chooses user agent"| node_agents
node_submit -->|"prints outcomes"| node_utilities
node_submit -->|"fetches cookies"| node_facebook
node_submit -->|"fetches form and submits"| node_instagram
node_harvester -->|"prints progress"| node_utilities

click node_entry "https://github.com/jarvisstar/instagram-reporter/blob/main/instagram-reporter.py"
click node_profile "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py"
click node_video "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py"
click node_submit "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py"
click node_proxyfile "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/utils.py"
click node_harvester "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/proxy_harvester.py"
click node_agents "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/user_agents.py"
click node_utilities "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/utils.py"
click node_modules "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/check_modules.py"
click node_logo "https://github.com/jarvisstar/instagram-reporter/blob/main/libs/logo.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_entry,node_profile,node_video,node_submit,node_user toneBlue
class node_proxyfile,node_harvester,node_agents,node_utilities,node_modules,node_logo toneAmber
class node_facebook,node_instagram toneMint
```

## Components

### Reporting workflow

- [CLI orchestrator](https://github.com/jarvisstar/instagram-reporter/blob/main/instagram-reporter.py): `instagram-reporter.py`
- [Profile reporting](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py): `libs/attack.py`
- [Video reporting](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py): `libs/attack.py`
- [Report submission](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/attack.py): `libs/attack.py`

### Supporting services

- [Proxy file parsing](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/utils.py): `libs/utils.py`
- [Proxy harvesting](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/proxy_harvester.py): `libs/proxy_harvester.py`
- [User-agent selection](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/user_agents.py): `libs/user_agents.py`
- [Prompts and status](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/utils.py): `libs/utils.py`
- [Dependency checks](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/check_modules.py): `libs/check_modules.py`
- [Banner display](https://github.com/jarvisstar/instagram-reporter/blob/main/libs/logo.py): `libs/logo.py`

### External services

- **Facebook web**
- **Instagram reporting endpoint**

### Other components

- **CLI user**

## Connections

- CLI user → CLI orchestrator: selects options (evidence: `instagram-reporter.py`)
- CLI orchestrator → Dependency checks: checks dependencies (evidence: `instagram-reporter.py`)
- CLI orchestrator → Banner display: prints banner (evidence: `instagram-reporter.py`)
- CLI orchestrator → Prompts and status: prompts and reports (evidence: `instagram-reporter.py`)
- CLI orchestrator → Proxy harvesting: requests proxies (evidence: `instagram-reporter.py`)
- CLI orchestrator → Proxy file parsing: parses proxy file (evidence: `instagram-reporter.py`)
- CLI orchestrator → Profile reporting: dispatches profile (evidence: `instagram-reporter.py`)
- CLI orchestrator → Video reporting: dispatches video (evidence: `instagram-reporter.py`)
- Profile reporting → Report submission: submits profile report (evidence: `libs/attack.py`)
- Video reporting → Report submission: submits video report (evidence: `libs/attack.py`)
- Report submission → User-agent selection: chooses user agent (evidence: `libs/attack.py`)
- Report submission → Prompts and status: prints outcomes (evidence: `libs/attack.py`)
- Report submission → Facebook web: fetches cookies (evidence: `libs/attack.py`)
- Report submission → Instagram reporting endpoint: fetches form and submits (evidence: `libs/attack.py`)
- Proxy harvesting → Prompts and status: prints progress (evidence: `libs/proxy_harvester.py`)
