get-chefkoch is a simple, lightweight Python library that allows you to easily extract recipe data from Chefkoch.
pip install get-chefkochFull Documentation can be found at Read the Docs.
Search for a recipe:
from get_chefkoch import Search
s = Search("Apfelstrudel")
recipe = s.recipes(limit=1)[0]
print(recipe.name)
print(recipe.description)Get the Recipe of the Day:
from get_chefkoch import Search
recipe = Search().recipeOfTheDay()
print(recipe.name)
print(recipe.description)The Recipe object provides easy access to the following properties:
| Property | Description |
|---|---|
name |
Name of the recipe |
id |
Unique identification of the recipe |
description |
Description of the recipe |
image |
Url of a beautiful picture of the recipe |
ingredients |
Recipe ingredients |
category |
Recipe category |
prepTime |
Preparation time (datetime.timedelta) |
totalTime |
Total Time (datetime.timedelta) |
cookTime |
Cooking time (datetime.timedelta) |
Note: Many more parameters are available via the
Recipe().data_dump()method.
- ✨ Query the Recipe of the Day
- 🔍 Search for specific recipes
- 🥗 Query detailed information about recipes (cooking time, description, ingredients, etc.)
- 🚀 Fast and lightweight