How jrotheneder/notifier works
Main Components
a) User Interface Layer:
• Telegram Bot Interface (notifier_bot.py)
• It as the entry point for user interactions
b) Core Application Layer:
• Main Controller (notifier_main.py)
• Product Management System
• Tracking System
c) Scraping Layer:
• Web Scraping Modules (one for each retailer)
• Selenium WebDriver Helper
d) Data Model Layer:
• Product Classes Hierarchy
• Storage System (JSON file storage)
Component Relationships
[Telegram Users] ←→ [Telegram Bot Interface]
• ↓
[Main Controller]
• ↓
• ┌────┴────┐
[Product Management] ←→ [Tracking System]
• ↓
[Scraping Layer]
• ┌────┴────┐
[Retailer Scrapers] ←→ [WebDriver Helper]
• ↓
[Product Classes]
• ↓
[Storage System]
Important Details
a) Supported Retailers (show as connected modules):
• Zara
• Uniqlo
• Zalando
• H&M
• COS
b) Key Features (as annotations):
• Per-user tracking
• Price/availability monitoring
• JSON export/import
• Scheduled checks
Technical Elements
• Selenium WebDriver as a dependent service
• JSON file storage
• Configuration requirements (bot_token.txt, allowed_users.txt)
Data Flow Indicators
• User commands flow
• Scraping data flow
• Notification flow
• Storage operations
Implementation Notes
• Maintain a clear hierarchy from user interface to data storage
• Version information and supported retailers list