How rjchauhan18/gtu_notification works
Project type and purpose
• This is an open-source notification tool written in Python. It periodically scrapes the GTU website for new notifications, compares them to the last-seen notification stored locally, and sends alerts via email (and optionally Discord if the discord.py module is used).
• It is not a full-stack app or microservice suite, but rather a CLI/automation utility that can be scheduled (e.g., via GitHub Actions or cron).
File structure
• Top-level modules:
• main.py – the entrypoint orchestrating scraping and notifications
• Digital_guj_scraper.py – encapsulates the web-scraping logic against the GTU site
• discord.py – (optional) integration to post alerts to a Discord channel
• notifications.json / Record/ – local persistence of the last-seen notification ID or link
• Configuration and metadata:
• requirements.txt – Python dependencies (e.g., requests, BeautifulSoup, python-dotenv)
• .env (not in repo) – SMTP credentials for sending email
• .github/workflows/actions.yml – CI and scheduled execution definition
• Supporting files:
• README.md, Contributing.md, LICENSE, .gitignore, .readthedocs.yaml
README for additional insights
• The README describes:
• Program flow: check GTU site → detect new notification → send email → update state
• SMTP setup instructions
• Customization points (frequency, recipients list, content)