/gtu_notification

This program checks a gtu website for new notifications and sends an email to a list of people if a new notification is found.

Primary LanguagePythonMIT LicenseMIT

GTU-NOTIFICATION

GTU-NOTIFICATION CodeQL

Description

  • This program checks a gtu website for new notifications and sends an email to a list of people if a new notification is found. It uses a web-scraping library to extract the notification information from the website, and sends the email. The program also remembers the link to the last notification that it found so that it can check if a new notification has been posted since the last time it was run.

Language

  • Python

Author

Setup and Usage

To set up and use this project locally, follow these steps:

  1. Clone the Repository:
git clone https://github.com/Rjchauhan18/gtu_notification.git
cd gtu_notification
  1. Install Dependencies:
pip install -r requirements.txt
  1. Configure Email Credentials:

Create a .env file in the project root directory and add the following lines:

SMTP_SENDER_EMAIL="your sender email"
SMTP_PASSWORD="Your SMTP app password"
SMTP_RECEIVER_EMAIL="Email ID to recieve information to"
  1. SMTP Setup:

If you are using Gmail, follow these steps to generate an App Password for SMTP:

  1. Go to your Google Account: https://myaccount.google.com/.

  2. Navigate to the "Security" section.

  3. Under "Signing in to Google," select "App passwords."

  4. Select "Mail" from the drop-down menu and click "Generate."

  5. Enter a name for the app and click "Generate."

  6. Copy the 16-digit App Password and paste it into the .env file.

  7. Run the Program:

python main.py

The program will check for new notifications and send emails if needed.

Screenshots

Generating an App Password

Entering the App Password

Customization

Feel free to customize the configuration and adapt the program to your requirements. For example, you can change the following:

  • The email sender and recipient addresses
  • The frequency at which the program checks for new notifications
  • The content of the email notification

Support

If you have any questions or encounter issues, please reach out to the author: https://github.com/Rjchauhan18.

👥 Contributors

Join our community and become a contributor today! 🚀

License

MIT LICENSE