def extract_recipes_data(recipes): for recipe_html in recipes: recipe_link = root_url + recipe_html['href'] recipe = Recipe(recipe_link) recipe.get_recipe_steps() print(recipe.get_recipe_name()) print('pour {} personnes\n'.format(recipe.get_nb_person())) print('Ingredients:') for ingredient in recipe.get_ingredients(): print(ingredient['ingredient_quantity'] + ingredient['ingredient_name']) print('\n') for step in recipe.get_recipe_steps(): print('\t- {}'.format(step)) print('\n\n')