This repository contains code for a Recipe Finder app built using Python and Streamlit. The app allows users to search for recipes based on ingredients and dietary restrictions. It makes an API call to the Spoonacular API to retrieve recipe information and displays the results in a user-friendly interface.
To run the Recipe Finder app, follow these steps:
- Clone the repository to your local machine.
- Install the required packages listed in the
requirements.txt
file using pip. Runpip install -r requirements.txt
. - Create a free account on Spoonacular to obtain an API key.
- Create a
secrets.toml
file in the root directory and add your Spoonacular API key to the file as follows:
[api_key]
api_key = "YOUR_API_KEY_HERE"
- Run the app by executing the command
streamlit run recipe_finder.py
in your terminal.
To use the Recipe Finder app, follow these steps:
- Enter comma-separated ingredients (e.g. chicken, rice, broccoli) into the input field.
- Select any dietary restrictions you want to apply from the dropdown menu.
- Click the "Find Recipes" button to retrieve a list of recipes.
- The app displays the recipe titles, preparation time, serving size, and source link for each recipe in a table format.
- Python
- Streamlit
- Spoonacular API