How c1earnote/major works
Major is a Telegram message-monitoring and suspicious-activity project: messages can be collected from Telegram, analyzed for outliers, and presented in a dashboard with channel and user views. The repository contains separate scraper, notebook-based analysis, Flask file endpoints, and React UI code; the UI’s documented API calls do not match the sampled Flask routes, so no connection between them is asserted. The README also names an ML model, but the unsampled nlp.py implementation and its integration cannot be verified from the excerpts.
Main entry points: App.jsx React app · Dashboard.jsx Dashboard view · main_major.py Outlier analysis · Scraper.py Telethon scraper
Components 18
Telegram collection
- Telethon scraper
Backend/Telethon Scraper/Scraper.py - Collected messages
messages.txt
Message analysis
- Chat input
- Outlier analysis
Backend2/main_major.py - Suspicious results
Backend2/suspicious_messages_detailed.csv - NLP model logic
nlp.py
File services
- Flask endpoints
server.py - Message file
messages.txt - Saved link
Link.txt
React dashboard
- React app
Frontend/projectMain/src/App.jsx - Tab navigation
Frontend/projectMain/src/components/Navbar.jsx - Dashboard view
Frontend/projectMain/src/components/Dashboard.jsx - Channel view
Frontend/projectMain/src/components/DetectedChannels.jsx - Suspicious-user view
Frontend/projectMain/src/components/SuspiciousUsers.jsx - Legacy dashboard UI
dashboard-script.js
Other components
- Operator
- Telegram
- Dashboard user
Connections 18
- Operator → Telethon scraper: starts scrape
Backend/Telethon Scraper/Scraper.py - Telethon scraper → Telegram: joins and reads
Backend/Telethon Scraper/Scraper.py - Telethon scraper → Collected messages: writes messages
Backend/Telethon Scraper/Scraper.py - Operator → Outlier analysis: uploads chat
Backend2/main_major.py - Chat input → Outlier analysis: parses and scores
Backend2/main_major.py - Outlier analysis → Suspicious results: exports results
Backend2/main_major.py - Dashboard user → React app: opens dashboard
- React app → Tab navigation: renders navigation
Frontend/projectMain/src/App.jsx - React app → Dashboard view: renders tab
Frontend/projectMain/src/App.jsx - React app → Channel view: renders tab
Frontend/projectMain/src/App.jsx - React app → Suspicious-user view: renders tab
Frontend/projectMain/src/App.jsx - Dashboard view → Channel view: renders channels
Frontend/projectMain/src/components/Dashboard.jsx - Dashboard view → Suspicious-user view: renders users
Frontend/projectMain/src/components/Dashboard.jsx - Dashboard view → Flask endpoints: requests API
Frontend/projectMain/src/components/Dashboard.jsx - Flask endpoints → Message file: reads and writes
server.py - Flask endpoints → Saved link: writes link
server.py - Legacy dashboard UI → Collected messages: fetches messages
dashboard-script.js - NLP model logic → Outlier analysis: integration unknown