This script automates the process of logging into the Arbor portal, extracting school messages, and forwarding them to a specified email address.
The messages come as a single run-on line, and there is no subject. Adding paragraph breaks and a subject line greatly improves readability. To enable, specify your OPENAI_API_KEY in the .env
file.
pip install -r requirements.txt
..env.template
to .env
and update it with your Arbor, IMAP, and (optionally) OpenAI credentials, the e-mail the messages will appear to have been sent from, and the forwarding email.Run the script with python arbor_message_forwarder.py
from Cron. The script will automatically perform all its tasks in the background, and new messages should automatically appear in your forwarding e-mail inbox.
On the first run, the script will attempt to install a version of the Chromium browser compatible with Pyppeteer (if it is not already installed).