How alamin271/oep-watcher works
oep-watcher is a small Python monitor that logs into the OEP training site, periodically searches for batches at a configured location, detects batches not seen before, and alerts a Telegram chat. The main loop owns session setup and polling; batch handling owns deduplication, persistence, and notification. The README gives no additional capability detail, so this map reflects the sampled runtime source.
Main entry points: oep_batch_watcher.py Polling loop · seen_batches.json Seen batches
Components 10
Monitoring
- Polling loop
oep_batch_watcher.py - Login and filters
oep_batch_watcher.py - Batch search
oep_batch_watcher.py - New-batch detection
oep_batch_watcher.py
State
- Seen-batch state
oep_batch_watcher.py - Seen batches
seen_batches.json
Alerts
- Telegram notifier
oep_batch_watcher.py
Other components
- Operator
- OEP training site
- Telegram API
Connections 11
- Operator → Polling loop: configures and starts
oep_batch_watcher.py - Polling loop → Seen-batch state: loads state
oep_batch_watcher.py - Polling loop → Login and filters: sets up session
oep_batch_watcher.py - Login and filters → OEP training site: logs in and filters
oep_batch_watcher.py - Polling loop → Batch search: polls batches
oep_batch_watcher.py - Batch search → OEP training site: searches and reads
oep_batch_watcher.py - Polling loop → New-batch detection: handles results
oep_batch_watcher.py - New-batch detection → Seen-batch state: reads and updates
oep_batch_watcher.py - Seen-batch state → Seen batches: reads or writes
oep_batch_watcher.py - New-batch detection → Telegram notifier: sends alerts
oep_batch_watcher.py - Telegram notifier → Telegram API: posts messages
oep_batch_watcher.py