Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
def AllergenOptions() :
import request
import json
api = "ddd81f3534324014a93b431099400b43"
query=0
while(question!=1):
que=input("Do you have any intolerances/allergies (eg. dairy,seafood)?")
if que.upper!='YES' or que.upper!='NO' :
print("Please respond with yes/no")
query=1
if que.upper=='YES':
allergens=input("Please list the things you are allergic to seperated by a coma : ")
query=1
if que.upper == "NO":
Main.py
query=1
response = request.get("https://api.spoonacular.com/recipes/complexSearch?ApiKey=ddd81f3534324014a93b431099400b43&intolerances=allergens")
print(response.json())
ingredient = response.json()