Commit 1233a9f5 authored by zwifi's avatar zwifi
Browse files

Fixed typo for target json file

parent 13e76d87
...@@ -13,5 +13,5 @@ with open("recipes.json", "w") as recipe_f: ...@@ -13,5 +13,5 @@ with open("recipes.json", "w") as recipe_f:
food_r = requests.get('https://data.toulouse-metropole.fr/api/records/1.0/search/?dataset=denrees-extrait-de-datameal&facet=libelle_recette&facet=libelle_denree&facet=arachide&facet=ovoproduit&facet=lait&facet=mollusques&facet=gluten&facet=fruits_a_coque&facet=sulfites&facet=crustaces&facet=sesame&facet=lupin&facet=poisson&facet=soja&facet=celeri&facet=moutarde&rows=5000') food_r = requests.get('https://data.toulouse-metropole.fr/api/records/1.0/search/?dataset=denrees-extrait-de-datameal&facet=libelle_recette&facet=libelle_denree&facet=arachide&facet=ovoproduit&facet=lait&facet=mollusques&facet=gluten&facet=fruits_a_coque&facet=sulfites&facet=crustaces&facet=sesame&facet=lupin&facet=poisson&facet=soja&facet=celeri&facet=moutarde&rows=5000')
print("Recipes request status code: "+str(food_r.status_code)) print("Recipes request status code: "+str(food_r.status_code))
with open("recipes.json", "w") as food_f: with open("food.json", "w") as food_f:
food_f.write(json.dumps(food_r.json(), indent=2)) 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