krz/daily-poem
clone: git clone https://gitbay.org/krz/daily-poem.git
main:
| 040000 | .github/ | |
| 100644 | .gitignore | 46 |
| 100644 | LICENSE.txt | 639 |
| 100644 | README.nfo | 1378 |
| 100644 | main.py | 1307 |
| 100644 | requirements-dev.in | 16 |
| 100644 | requirements-dev.txt | 525 |
| 100644 | requirements.in | 9 |
| 100644 | requirements.txt | 334 |
| 040000 | tests/ |
┌──────────────────────────────────────────────────────────────┐
│ D A I L Y P O E M [ KRZ ] krz.sh │
└──────────────────────────────────────────────────────────────┘
WHAT
python program. requests a random poem from the poetrydb api and
emails it to a configured list of addresses.
REQUIRES
python, and a way to send mail (e.g. mailutils on debian).
RUN
git clone <REPO_URL>
cd daily-poem
pip install -r requirements.txt
edit main.py and set:
- sender_email: the from address
- recipient_emails: a list of to addresses
- smtp_server: smtp host, defaults to localhost
then:
python main.py
┌──────────────────────────────────────────────────────────────┐
│ krz.sh │
└──────────────────────────────────────────────────────────────┘