CFG Python & Apps course project | worked with @Ayjahm & Stephanie
Oct 2022: Project submission to CFG
Sep 2023: Code update after Edamam API Recipe Search V2
release
To run the project on your device:
- Clone the repo on your device
- Make sure you've Python & VSCode or PyCharm installed on your device
- Open the project root in VSCode/PyCharm, switch to virtual env, and ensure your
pip
is working, if not runpython3 -m ensurepip
in VSCode/PyCharm's terminal - Next, install requests by running the following:
python -m pip install requests
in VSCode/PyCharm's terminal - Visit Edamam API website, click button
Signup API
, and create an account, open Applications Tab, create 2 new applications - one forNutrition Analysis API
, one forRecipe Search API
pressView
next to each one to check your credentials for each API, and place this data withinAppConfig.py
file. If you're having trouble getting credentials, take a peek at the Edamam FAQ page - Visit RapidApi website, create an account, visit Spoonacular API tab, subscribe to this API to obtain
X-RapidAPI-Key
, and place this data withinAppConfig.py
file - Run in the VSCode/PyCharm's terminal:
python EdamamAPI_recipeSearch.py
orpython SpoonacularAPI_recipeSearch.py
to run the chosen file - Happy coding!