weboob.capabilities.recipe

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

Bases: weboob.capabilities.base.BaseObject

Recipe object.
Variables:
  • title – (unicode) Title of the recipe
  • author – (unicode) Author name of the recipe
  • thumbnail_url – (unicode) Direct url to recipe thumbnail
  • picture_url – (unicode) Direct url to recipe picture
  • 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
toKrecipesXml(author=None)

Export recipe to KRecipes XML string

class weboob.capabilities.recipe.CapRecipe

Bases: weboob.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]