Commit 06d7db53 authored by Nicolas Seydoux's avatar Nicolas Seydoux
Browse files

Merge branch 'master' of

parents 5619fbd7 1233a9f5
import requests
import json
r = requests.get('')
print(json.dumps(r.json(), indent=2))
menus_r = requests.get('')
print("Menu request status code: "+str(menus_r.status_code))
with open("menus.json", "w") as menu_f:
menu_f.write(json.dumps(menus_r.json(), indent=2))
recipe_r = requests.get('')
print("Recipes request status code: "+str(recipe_r.status_code))
with open("recipes.json", "w") as recipe_f:
recipe_f.write(json.dumps(recipe_r.json(), indent=2))
food_r = requests.get('')
print("Recipes request status code: "+str(food_r.status_code))
with open("food.json", "w") as food_f:
food_f.write(json.dumps(food_r.json(), indent=2))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment