Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 1.27 KB

README.md

File metadata and controls

32 lines (25 loc) · 1.27 KB

Tandoor KptnCook Importer

This script imports recipes from the great app KptnCook to the Tandoor cookbook. The script is based on my previous research of the KptnCook application.

How to use

Usage: main.py [OPTIONS] HOST API_KEY SRC

  Request a recipe (<SRC>) from KptnCook and import it into the Tandoor
  cookbook on <HOST> using the Tandoor <API_KEY>. <SRC> can either be the
  recipe id or the shared recipe url.

Options:
  --language [de|en]         choose the language
  --units [metric|imperial]  choose the untis
  --with_time BOOLEAN        import time into recipes
  --help                     Show this message and exit.

Either the KptnCook recipe sharing URL can be used to parse a recipe:

    python main.py https://my-tandoor-server.de/ TANDOOR_API_KEY https://sharing.kptncook.com/IJ7UqFSDCnb

Or the recipe id can be used. This can be found when searching for the recipes online (last part of the url): https://mobile.kptncook.com/recipe/pinterest/kurbisragout-pasta-mit-getrockneten-tomaten/1cbb478

    python main.py https://my-tandoor-server.de/ TANDOOR_API_KEY 1cbb478