woob.capabilities.recipe

class woob.capabilities.recipe.CapRecipe

Bases: woob.capabilities.base.Capability

Recipe providers.

get_recipe(_id)

Get a recipe object from an ID.

Parameters

_id (str) – ID of recipe

Return type

Recipe

iter_recipes(pattern)

Search recipes and iterate on results.

Parameters

pattern (str) – pattern to search

Return type

iter[Recipe]

class woob.capabilities.recipe.Comment(id='', url=NotLoaded, backend=None)

Bases: woob.capabilities.base.BaseObject

Variables
  • author – (str) Author of the comment

  • rate – (str) Rating

  • text – (str) Comment

class woob.capabilities.recipe.Recipe(id='', title='', url=None)

Bases: woob.capabilities.base.BaseObject

Recipe object.

Variables
  • title – (str) Title of the recipe

  • author – (str) Author name of the recipe

  • picture – (BaseImage) Picture of the dish

  • short_description – (str) Short description of a recipe

  • nb_person – (list) The recipe was made for this amount of persons

  • preparation_time – (int, int) Preparation time of the recipe in minutes

  • cooking_time – (int, int) Cooking time of the recipe in minutes

  • ingredients – (list) Ingredient list necessary for the recipe

  • instructions – (str) Instruction step list of the recipe

  • comments – (list) User comments about the recipe