Giter Club home page Giter Club logo

recipe_calculator's Introduction

Recipe calculator

At home, we use this program when we plan our weekly meals, before we go shopping. It helps us not only keep our choices original and interesting, but it also helps us save a lot of time when we plan our meals.

This tool produces a selection of recipes, classified into 7 categories (Beef, chicken, pork, pasta, seafood/fish, salads and healthy recipes).

The program uses webscraping to get recipe URLs off the website allrecipes.com, and stores them into a dictionary as values, where the corresponding key is a recipe category.

Then, for each category key, 3 recipe url values are randomly selected. The output is compiled into a list and sent via email.

NOTE: for this program to run correctly, e-mail information is required. You will need to set up an environment variables file with the necessary e-mail information. Simply create a file in your root folder called '.bash_profile' and copy into it the 3 lines below using your own email information:

export EMAIL="youremail"

export PASSWORD="yourpassword"

export DESTINATION="yourdestinationemail"

An additional step you may want to consider is automation. In my case, I have setup a crontab job that makes this program run automatically on a weekly basis so I don't have to go and fetch new recipes, comfortably receiving them in my email directly.

Enjoy your cooking!

recipe_calculator's People

Contributors

markaww avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.