Skip to main content

Python library to retrieve information from chefkoch.de

Project description

python-chefkoch

Downloads PyPI version

A simple Python retrieval tool for recipes from chefkoch.de

🐍 Installation

$ pip install python-chefkoch

🚀 Quickstart

from chefkoch import Recipe

recipe = Recipe('https://www.chefkoch.de/rezepte/745721177147257/Lasagne.html')
print(recipe.title)

🍽️ Recipe attributes

Attribute Type Description
title str The title of the recipe.
image_url str The URL of the recipe's image.
image_base64 bytes The base64-encoded content of the recipe's image.
image_urls List[str] The URLs of all images associated with the recipe.
date_published datetime.datetime The date when the recipe was published.
prep_time isodate.Duration The preparation time of the recipe.
cookTime isodate.Duration The cooking time of the recipe.
totalTime isodate.Duration The total time required to prepare the recipe.
difficulty str The difficulty level of the recipe.
ingredients List[str] The list of ingredients required for the recipe.
instructions List[str] The list of instructions to prepare the recipe.
publisher str The name of the publisher of the recipe.
calories str The number of calories in the recipe.
keywords str The keywords associated with the recipe.
number_reviews int The number of reviews for the recipe.
number_ratings int The number of ratings for the recipe.
rating float The average rating of the recipe.
category str The category of the recipe.

🕵️ Retrivers

RandomRetriever

Retrieves a random recipe from chefkoch.de.

from chefkoch import RandomRetriever

retriever = RandomRetriever()
recipe = retriever.get_recipe()

DailyRecommendationRetriever

Retrieves the daily recommendation from chefkoch.de.

from chefkoch import DailyRecommendationRetriever

retriever = DailyRecommendationRetriever()
recipes = retriever.get_recipes()

SearchRetriever

Allows the use of a search query to retrieve recipes from chefkoch.de.

from chefkoch import SearchRetriever

print(SearchRetriever.HEALTH)
retriever = SearchRetriever(health=["Vegan"])
recipes = retriever.get_recipes()

💁 Contributing

As an open-source initiative in a rapidly evolving domain, I welcome contributions, be it through the addition of new features or the improvement of existing ones. If you have any suggestions, bug reports, or annoyances, please report them to the issue tracker.

📃 License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_chefkoch-2.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

python_chefkoch-2.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file python_chefkoch-2.0.0.tar.gz.

File metadata

  • Download URL: python_chefkoch-2.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for python_chefkoch-2.0.0.tar.gz
Algorithm Hash digest
SHA256 8edeebe44264261dc06d40458ad3e73324c6613697cf36133ec77a32789c66ad
MD5 bbf2a70a1a4b06f9187bc635baaa38f1
BLAKE2b-256 9850ad60022b993c27817e018ef960f4fd6c5472668c203672eefb2d6686a0b5

See more details on using hashes here.

File details

Details for the file python_chefkoch-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: python_chefkoch-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for python_chefkoch-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6f0b13211459cf94992ed7ea2fa42082058211d1ae03da1db23778d99fca7fed
MD5 d05ffbf24455aba86bec368ece6ac25c
BLAKE2b-256 4c6247706583b975c491e0156fa3d9bf13f5e9bd7a0f4adc47d22ecfceebf0fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page