From 8a3db0cc60bf1906ef015501fff26995d2975a6e Mon Sep 17 00:00:00 2001 From: TheThomaas Date: Sat, 8 Jul 2023 16:10:31 +0200 Subject: [PATCH] Update scraper script --- recipes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes.py b/recipes.py index 43042cd..665b155 100644 --- a/recipes.py +++ b/recipes.py @@ -26,7 +26,7 @@ for i, v in enumerate(ingredients_list): instructions_list = recipe_json["instructions_list"] instructions = "" for i, v in enumerate(instructions_list): - instructions += f"{i + 1}. {v}\n" + instructions += f"{i + 1}. {v}\n\n" def slugify(value, allow_unicode=False): value = str(value) @@ -66,4 +66,4 @@ f = open(f"src/recipes/{slugify(title)}.md", "w") f.write(recipesConcat()) f.close() -download_jpg(image_url, r"C:\Users\Thomas\Downloads\recipes-scrapers\src\img\recipes/", slugify(title) ) \ No newline at end of file +download_jpg(image_url, r".\src\img\recipes/", slugify(title) ) \ No newline at end of file