class weboob.capabilities.recipe.CapRecipe

Bases: weboob.capabilities.base.Capability

Recipe providers.


Get a recipe object from an ID.

Parameters:_id (str) – ID of recipe
Return type:Recipe

Search recipes and iterate on results.

Parameters:pattern (str) – pattern to search
Return type:iter[Recipe]
class weboob.capabilities.recipe.Recipe(id='', title=u'', url=None)

Bases: weboob.capabilities.base.BaseObject

Recipe object.
  • title – (unicode) Title of the recipe
  • author – (unicode) Author name of the recipe
  • picture – (BaseImage) Picture of the dish
  • short_description – (unicode) Short description of a recipe
  • nb_person – (list) The recipe was made for this amount of persons
  • preparation_time – (int, long) Preparation time of the recipe in minutes
  • cooking_time – (int, long) Cooking time of the recipe in minutes
  • ingredients – (list) Ingredient list necessary for the recipe
  • instructions – (unicode) Instruction step list of the recipe
  • comments – (list) User comments about the recipe
class weboob.capabilities.recipe.Comment(id=u'', url=NotLoaded, backend=None)

Bases: weboob.capabilities.base.BaseObject

  • author – (unicode) Author of the comment
  • rate – (unicode) Rating
  • text – (unicode) Comment