Automatically collects the latest Persian news from multiple trusted news providers, categorizes articles, formats them into clean messages, and delivers them directly to users through an interactive Bale Messenger bot.
⭐ If you find this project useful, don't forget to Star the repository!
NewsHub is a fully automated Persian news aggregation bot designed for Bale Messenger.
Instead of relying on RSS feeds or third-party APIs, the bot performs real-time HTML web scraping from trusted Persian news websites, extracts the latest articles, formats the content, and instantly sends it to users through an interactive Bale interface.
The entire project is implemented visually using n8n, making it easy to maintain, extend, and deploy while keeping resource usage extremely low.
- 🏛️ Political News
- 🌍 International News
- 💰 Economic News
- ⚽ Sports News
- 📢 Incident News
- 🌱 Health & Medical News
- 🤖 Artificial Intelligence News
- 🚀 Interactive Bale keyboard
- 📥 Automatic message polling
- 🔄 Duplicate message prevention
- 🌐 Multi-source news aggregation
- 📰 Real-time HTML web scraping
- 📅 Publication date extraction
- 🔗 Original article links
- ⚙️ Modular workflow architecture
- 📱 Mobile-friendly message formatting
- 🧩 Easy to extend with new categories
- 💡 Lightweight execution
- 🔥 No traditional backend required
User
│
▼
Bale Messenger Bot
│
▼
Get Updates API
│
▼
Parse Incoming Message
│
▼
Duplicate Message Detection
│
▼
Category Switch Router
│
┌───────────────┼────────────────┐
│ │ │
▼ ▼ ▼
Political Sports AI News
│ │ │
▼ ▼ ▼
HTTP Request HTTP Request HTTP Request
│ │ │
▼ ▼ ▼
HTML Parsing HTML Parsing HTML Parsing
│ │ │
└───────────────┼────────────────┘
▼
JavaScript Processing
▼
Formatted Bale Message
▼
Send Message
The bot currently aggregates articles from trusted Persian news providers.
| Source | Purpose |
|---|---|
| 📰 Shahrekhabar | General News |
| 🤖 Hooshio | Artificial Intelligence News |
Adding a new news source requires only a new workflow branch and extraction logic.
🤖 Latest AI News
1️⃣ Meta disables Muse Image after public criticism.
📅 21 Tir 1405
🔗 https://hooshio.com/...
────────────────────
2️⃣ Claude Cowork is now available on Web & Mobile
📅 21 Tir 1405
🔗 https://hooshio.com/...
────────────────────
3️⃣ DeepSeek develops its own AI chips
📅 19 Tir 1405
🔗 https://hooshio.com/...
- n8n
- JavaScript (Code Nodes)
- Bale Bot API
- HTTP Request Nodes
- HTML Extraction
- CSS Selectors
- Regular Expressions
- Data Tables
- Modular Workflow Design
Most messaging bots simply consume RSS feeds or external APIs.
This project takes a different approach.
Instead of depending on third-party services, it directly scrapes trusted Persian news websites, extracts structured information, formats the content, and delivers the latest articles to users in real time.
This architecture provides greater flexibility, allows support for virtually any website, and makes adding new news providers extremely simple.
- Clone this repository.
git clone https://github.com/yourusername/newshub-bale-bot.git-
Import the workflow into n8n.
-
Replace the placeholder values:
<YOUR_BALE_BOT_TOKEN>
<YOUR_DATA_TABLE_ID>
<YOUR_PROJECT_ID>
- Activate the workflow.
Done! 🎉
✅ Fully visual automation
✅ Modular architecture
✅ Lightweight workflow
✅ Real-time news collection
✅ Multi-category support
✅ Easy maintenance
✅ Easy deployment
✅ Duplicate message protection
✅ Low resource usage
✅ Beginner-friendly workflow
- Technology News
- Cryptocurrency News
- Science News
- Entertainment News
- Personalized subscriptions
- Scheduled daily news
- AI-generated summaries
- Search by keyword
- Multi-language support
- More Persian news providers
Contributions, feature requests and pull requests are always welcome.
Feel free to fork the repository and improve the project.
This project is licensed under the MIT License.
Made with ❤️ using n8n, JavaScript and Bale Messenger API
