You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Frank
a12409fc12
|
2 weeks ago | |
---|---|---|
main.py | 2 weeks ago | |
readme.md | 2 weeks ago | |
requirements.txt | 2 weeks ago | |
users.json | 2 weeks ago |
readme.md
Lend Expire Notification
...for Stadtbibliothek Radebeul
About
This script checks the current lends of the user. If a lend is about to expire it sends an e-mail notification.
To get the Information the script simulates a user. It does a login to the OPAC System of the Stadtbibliothek Radebeul and extracts the information from the website. To archive this, it utiles using selenium.
Each run will trigger one e-mail, so trigger or run in the desired frequency.
Getting Stared
- Check out the repo
- Add username, password and email address in the users.json file
- create a ".env" file or past the following configurations varabiles into the environment varabiles
Enviornment Varables
SMTP_SERVER=mail.server.com
SMTP_PORT=587
EMAIL_ADDRESS=sender-mail
EMAIL_PASSWORD=password
DAYS_BEFORE=3
users.json
[
{
"username": "username",
"password": "password",
"recipient_email": "notification_mail"
}
]