https://github.com/rudreshveerkhare/new_announcements_notifier
new_announcement_notifier is a python script to check for announcement section of my college website and notify when new announcements are made
https://github.com/rudreshveerkhare/new_announcements_notifier
Last synced: 7 months ago
JSON representation
new_announcement_notifier is a python script to check for announcement section of my college website and notify when new announcements are made
- Host: GitHub
- URL: https://github.com/rudreshveerkhare/new_announcements_notifier
- Owner: RudreshVeerkhare
- Created: 2019-05-21T19:15:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T19:18:17.000Z (over 6 years ago)
- Last Synced: 2025-01-17T10:26:28.507Z (9 months ago)
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction :
* This is a Python 3 script which when scheduled to run every 10 minutes on a system (using cronjob on linux), checks for new announcements on my college website and if there are any new announcements, it will send emails to given addresses contaning link for announcements.# Working :
* This program creates two file in Home directory named as :
**.notification**
**log.txt**
* ".notification" is a hidden file use to store the data of last announcement.
* "log.txt" is a log file get appended with Execution status (Success or Failed) alongwith the time and date of execution of program.
* When program is executed, it first compares the current announcements on website with the last announcements in ".notification" file.
If both are different then it will send the new notifications to registered addresses and then updates the ".notificaton" to current data for future use and updates log file and exits.
If both are same then program just log into log file and exits.**Python Libraries Used :**
* **smtplib, ssl** : To send email
* **requests, bs4** : To fetch data from website