woob.capabilities.recipe

class CapRecipe[source]

Bases: Capability

Recipe providers.

iter_recipes(pattern)[source]

Search recipes and iterate on results.

Parameters:

pattern (str) – pattern to search

Return type:

iter[Recipe]

get_recipe(_id)[source]

Get a recipe object from an ID.

Parameters:

_id (str) – ID of recipe

Return type:

Recipe

class Recipe(id='', title='', url=None)[source]

Bases: BaseObject

Recipe object.

Variables:
  • url – (str) url

  • 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) Preparation time of the recipe in minutes

  • cooking_time – (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

class Comment(id='', url=NotLoaded, backend=None)[source]

Bases: BaseObject

Variables:
  • url – (str) url

  • author – (str) Author of the comment

  • rate – (str) Rating

  • text – (str) Comment