Skip to content

jasonqiu212/cookbook

Repository files navigation

CS 337: Cookbook

Team members:

  • Jason Qiu
  • Jiayi Xu
  • Mingyu Jin

Overview

This project parses online recipes into a useful data representation and features a conversational interface for user interaction.

The cookbook extracts recipes from TheMealDB.

The cookbook can answer queries and questions like:

  • Navigation: Repeat, Next, Go back
  • Show all ingredients
  • How do I do that?
  • What is a meatloaf?
  • How do I beat an egg?
  • What tools do I need?
  • How long?
  • What temperature?
  • Recipe Transformation: Convert units, Translate portion sizes

Here is a video demonstration of this project.

Getting Started

  1. Clone this repository.
$ git clone [email protected]:jasonqiu212/cookbook.git
$ cd cookbook
  1. Install the required Python packages from requirements.txt.

We recommend using a virtual environment to run this project.

$ python3 -m pip install -r requirements.txt
  1. Download the spacy package en_core_web_md.
$ python3 -m spacy download en_core_web_md
  1. Start the chatbot.
$ python3 main.py
  1. The chatbot provides 2 methods to fetch a recipe. To test the chatbot, choose option 1 and use the following test recipes:
$ Welcome to your interactive cookbook! How would you like to fetch your recipe from TheMealDB?
$ [1] URL to a specific recipe.
$ [2] Search recipe by name.
$ > 1
$ Got it! Please input the URL to a recipe on TheMealDB.
$ > https://www.themealdb.com/api/json/v1/1/lookup.php?i=52845

Congratulations! You have successfully initialized your cookbook.

Acknowledgements

About

Parse online recipes into useful data representations with a CLI

Resources

License

Stars

Watchers

Forks

Languages