diff options
author | Christian Cleberg <hello@cleberg.net> | 2023-05-22 15:18:04 -0500 |
---|---|---|
committer | Christian Cleberg <hello@cleberg.net> | 2023-05-22 15:18:04 -0500 |
commit | d70629daf0de6cc42f8c8f39b590ed87c9b3e23e (patch) | |
tree | d562d480100b5d4ead892a4fd1609f3610d04ca6 /README.md | |
download | daily-poem-d70629daf0de6cc42f8c8f39b590ed87c9b3e23e.tar.gz daily-poem-d70629daf0de6cc42f8c8f39b590ed87c9b3e23e.tar.bz2 daily-poem-d70629daf0de6cc42f8c8f39b590ed87c9b3e23e.zip |
initial commit
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..e300384 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# Daily Poem + +This is a simple Python program to request a random poem from the +[PoetryDB API](https://github.com/thundercomb/poetrydb) and email it to +configurable email addresses. + +## Prerequisites + +In order to run this program, you must have a compatible version of Python +installed. You must also have a way to send emails, such as the `mailutils` +package on Debian. + +## Set-Up & Running + +First, clone the repository and enter the directory: + +```bash +git clone <REPO_URL> +cd daily-poem +``` + +Next, install the required Python packages: + +```bash +pip install -r requirements.txt +``` + +Finally, you will need to edit the `main.py` file and replace the following +variables with your own values: + +- `sender_email`: Enter the email address you want the emails to be sent +from; e.g., `my_user@server.local` +- `recipient_emails`: Enter the email addresses that the poem will be sent to, +in the form of a list; e.g., `['user1@example.com', 'user2@example.com']` +- `smtp_server`: The SMTP server you want to user, defaults to `localhost`. + +Once the variables are updated, you may run the script: + +`python main.py` |