Financial email automation

The purpose of this project is to automatically generate an HTML template with finanacial information and send it by email to a list of contacts.

Before you start

Prerequisites

  • Installed python
  • Basic knowledge of Unix/Linux Shell commands

Local configuration

  1. Clone repository
git clone git@github.com:benjaminlozanow/financial_email_bot.git
  1. Install requirements
pip install -r requirements.txt
  1. Log into Yahoo Finance API and get you API key and copy it to a file with environmental variables.

  2. The same file with environmental variables must contain the sender email address and the list of recievers email addresses.

  3. Enable your gmail account to send emails though python with the following guide.

Files

Usage

Run following shell commands in your local repository:

python generate_email.py  
python email_bot.py  

Contribution

Feel free to optimize/modify the code to have better or different results.