Scrapes wife's favorite recipe sites for recipes and emails her three random recipes each week. The program will check that each entree sent has sufficient vegetables. If an entree lacks good veggies (i.e., those listed in veggies.py) it will grab a side dish at random to put with the meal.
- python
- python_dotenv (pip install)
- bs4 (pip install)
- recipe_scrapers (pip install)
- a .env file in the same directory as the script in the format:
SENDER=yourEmail@AddressHere.com
PASSWD=*
BCC=first@recipient.com,second@recipient.com,etc* see Google App Passwords
Change the user directory to your needs, or try simplifying to $HOME/code/recipe-emailer/cook.sh
0 8 * * Fri ./home/wassu/code/recipe-emailer/cook.shYou may need to recreate the virtual environment.
cd /home/wassu/code/recipe-emailer
rm -rf .venv
python3 -m venv .venv
source .venv/bin/activate
pip --version # to verify pip works
pip install -r requirements.txt