Logo Lanfrica

kushdab/law-update-notifier-20260624c

Domain:

digital infrastructure

Record type:

software
Creator:
kus
Host:
Python service monitoring Kenya Law portal for new legal updates and emailing subscribers # Kenya Law Update Notifier (20260624c) A Python-based background service that monitors the Kenya Law Gazette portal for new legal updates and notifies subscribers via email. ## Setup 1. **Clone the project** and navigate to the directory. 2. **Install dependencies**: ```bash pip install -r requirements.txt ``` 3. **Environment Variables**: Set the following variables in your environment: - `SENDER_EMAIL`: Your Gmail or SMTP email address. - `SENDER_PASSWORD`: Your email app password. - `RECIPIENT_EMAILS`: Comma-separated list of subscriber emails. - `SMTP_SERVER`: (Optional) Default is `smtp.gmail.com`. - `SMTP_PORT`: (Optional) Default is `587`. ## Running the Service Run the script directly: ```bash python notifier.py ``` The service will check for updates every hour and keep track of seen entries in `seen_updates.txt` to avoid duplicate notifications. ## Features - Scrapes Kenya Law Gazette links. - Persistent tracking using a local file cache. - Email notifications with direct links to new gazettes. - Error logging and automated retry.