# ismail-elkabouri/linkedin-news-automation architecture

> Architecture diagram of the GitHub repository ismail-elkabouri/linkedin-news-automation, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ismail-elkabouri/linkedin-news-automation
- Repository: https://github.com/ismail-elkabouri/linkedin-news-automation
- Video tour (about a minute): https://gitdiagram.com/ismail-elkabouri/linkedin-news-automation/video

## Overview

This is a LinkedIn AI-news automation app with both a PyQt desktop interface and a CLI. Users fetch and rank AI/LLM news, choose an article, generate an editable post, then save it or publish it through a Make.com webhook; the CLI also supports approval and scheduled posting. The graph preserves configuration, filtering/ranking, and the documented GUI settings and chat capabilities. Some GUI details and scheduling internals are only documented, so those relationships cite the README rather than implying unsampled calls.

Main entry points: [`main.py`](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/main.py) (CLI workflow), [`gui_app.py`](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py) (Desktop app), [`news_fetcher.py`](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py) (RSS fetching), [`post_generator.py`](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/post_generator.py) (Post generation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_cli["CLI workflow<br/>[main.py]"]
  node_desktop["Desktop app<br/>[gui_app.py]"]
end

subgraph group_news["News processing"]
  node_news_fetch["RSS fetching<br/>[news_fetcher.py]"]
  node_filter["News filtering<br/>[news_fetcher.py]"]
  node_ranking["News ranking<br/>[news_fetcher.py]"]
end

subgraph group_content["Post creation"]
  node_chat["AI chat<br/>[gui_app.py]"]
  node_generator["Post generation<br/>[post_generator.py]"]
end

subgraph group_delivery["Configuration and delivery"]
  node_settings["App settings<br/>[gui_app.py]"]
  node_config["Runtime config<br/>[config.py]"]
  node_poster["Webhook posting<br/>[linkedin_poster.py]"]
  node_saver["Local post saving<br/>[linkedin_poster.py]"]
end

node_user(("User"))
node_rss["RSS feeds"]
node_groq(("Groq API"))
node_make(("Make.com webhook"))
node_buffer(("Buffer"))
node_linkedin(("LinkedIn"))

node_user -->|"runs workflow"| node_cli
node_user -->|"uses app"| node_desktop
node_cli -->|"fetches news"| node_news_fetch
node_news_fetch -->|"filters items"| node_filter
node_news_fetch -->|"reads feeds"| node_rss
node_news_fetch -->|"reads feed settings"| node_config
node_cli -->|"ranks articles"| node_ranking
node_cli -->|"generates post"| node_generator
node_generator -->|"reads credentials"| node_config
node_generator -->|"requests completion"| node_groq
node_cli -->|"publishes post"| node_poster
node_cli -->|"saves post"| node_saver
node_poster -->|"reads webhook URL"| node_config
node_poster -->|"sends payload"| node_make
node_make -.->|"routes post"| node_buffer
node_buffer -.->|"publishes post"| node_linkedin
node_desktop -->|"fetches news"| node_news_fetch
node_desktop -->|"generates post"| node_generator
node_desktop -->|"provides settings"| node_settings
node_settings -.->|"saves credentials"| node_config
node_desktop -->|"offers chat"| node_chat
node_desktop -.->|"posts via webhook"| node_make

click node_cli "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/main.py"
click node_desktop "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py"
click node_settings "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py"
click node_chat "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py"
click node_news_fetch "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py"
click node_filter "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py"
click node_ranking "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py"
click node_config "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/config.py"
click node_generator "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/post_generator.py"
click node_poster "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/linkedin_poster.py"
click node_saver "https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/linkedin_poster.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_cli,node_desktop,node_user toneBlue
class node_news_fetch,node_filter,node_ranking toneAmber
class node_chat,node_generator,node_groq,node_make toneMint
class node_settings,node_config,node_poster,node_saver toneRose
class node_rss,node_buffer,node_linkedin toneIndigo
```

## Components

### User interfaces

- [CLI workflow](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/main.py): `main.py`
- [Desktop app](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py): `gui_app.py`

### News processing

- [RSS fetching](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py): `news_fetcher.py`
- [News filtering](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py): `news_fetcher.py`
- [News ranking](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/news_fetcher.py): `news_fetcher.py`

### Post creation

- [AI chat](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py): `gui_app.py`
- [Post generation](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/post_generator.py): `post_generator.py`

### Configuration and delivery

- [App settings](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/gui_app.py): `gui_app.py`
- [Runtime config](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/config.py): `config.py`
- [Webhook posting](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/linkedin_poster.py): `linkedin_poster.py`
- [Local post saving](https://github.com/ismail-elkabouri/linkedin-news-automation/blob/main/linkedin_poster.py): `linkedin_poster.py`

### Other components

- **User**
- **RSS feeds**
- **Groq API**
- **Make.com webhook**
- **Buffer**
- **LinkedIn**

## Connections

- User → CLI workflow: runs workflow (evidence: `README.md`)
- User → Desktop app: uses app (evidence: `README.md`)
- CLI workflow → RSS fetching: fetches news (evidence: `main.py`)
- RSS fetching → News filtering: filters items (evidence: `news_fetcher.py`)
- RSS fetching → RSS feeds: reads feeds (evidence: `news_fetcher.py`)
- RSS fetching → Runtime config: reads feed settings (evidence: `news_fetcher.py`)
- CLI workflow → News ranking: ranks articles (evidence: `main.py`)
- CLI workflow → Post generation: generates post (evidence: `main.py`)
- Post generation → Runtime config: reads credentials (evidence: `post_generator.py`)
- Post generation → Groq API: requests completion (evidence: `post_generator.py`)
- CLI workflow → Webhook posting: publishes post (evidence: `main.py`)
- CLI workflow → Local post saving: saves post (evidence: `main.py`)
- Webhook posting → Runtime config: reads webhook URL (evidence: `linkedin_poster.py`)
- Webhook posting → Make.com webhook: sends payload (evidence: `linkedin_poster.py`)
- Make.com webhook → Buffer: routes post (evidence: `README.md`)
- Buffer → LinkedIn: publishes post (evidence: `README.md`)
- Desktop app → RSS fetching: fetches news (evidence: `gui_app.py`)
- Desktop app → Post generation: generates post (evidence: `gui_app.py`)
- Desktop app → App settings: provides settings (evidence: `README.md`)
- App settings → Runtime config: saves credentials (evidence: `README.md`)
- Desktop app → AI chat: offers chat (evidence: `gui_app.py`)
- Desktop app → Make.com webhook: posts via webhook (evidence: `README.md`)
