返回顶部
p

paprika-recipe-importer辣椒食谱导入

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
380
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

paprika-recipe-importer

Paprika Recipe Importer

将食谱内容(任何格式/语言)转换为适用于 Paprika 3 的 .paprikarecipes 文件。

工作流程

  1. 1. 提取 输入内容(文本、图片、转录文本、URL 内容)中的食谱字段。
  2. 构建 JSON 食谱对象——仅包含源文件中实际存在的字段;不得编造值。
  3. 运行 打包脚本以生成 .paprikarecipes 文件。
  4. 交付 将文件提供给用户。

步骤 1 — 提取字段

解析输入内容,仅填充源文件中存在的字段:

JSON 字段说明
name食谱标题。必填。
ingredients
以换行符分隔的列表。格式:数量 单位 食材。 |
| directions | 以换行符分隔的步骤。 |
| description | 简介/摘要段落(如有)。 |
| notes | 提示、变体、作者备注。 |
| servings | 例如 4 份 或 供 6 人食用 |
| prep_time | 例如 15 分钟 |
| cook_time | 例如 30 分钟 |
| total_time | 例如 45 分钟 |
| source | 作者姓名、网站名称、个人。 |
| source_url | 原始 URL(如有)。 |
| categories | JSON 字符串数组,例如 [晚餐, 面食] |
| difficulty | 简单、中等 或 困难——仅当明确说明时。 |
| rating | 整数 1–5——仅当明确说明时。 |
| nutritional_info | 存在的任何营养数据。 |

规则:

  • - 绝不编造源文件中不存在的值。
  • 保留原始语言(葡萄牙语、英语、混合语言——无论源文件使用何种语言)。
  • 食材:每行一个,精确保留数量和单位。
  • 步骤:每行一个步骤;带编号的步骤 → 去除编号(Paprika 会处理显示)。

步骤 2 — 构建 JSON

将食谱写入临时路径下的 JSON 文件,例如 /tmp/<食谱名称>.json。

步骤 3 — 运行脚本

bash
python3 ~/.openclaw/skills/paprika-recipe-importer/scripts/build_paprikarecipes.py \
/tmp/<食谱名称>.json \
/tmp/<食谱名称>.paprikarecipes

该脚本接受单个 JSON 对象或 JSON 数组(用于多个食谱)。

步骤 4 — 交付

将 .paprikarecipes 文件发送给用户。提及:

  • - 如何导入:在 Paprika 中通过 文件 → 导入(或在 macOS/iOS 上双击文件)。
  • 源文件中找到了哪些字段,缺少了哪些字段。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 paprika-recipe-importer-1776293842 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 paprika-recipe-importer-1776293842 技能

通过命令行安装

skillhub install paprika-recipe-importer-1776293842

下载

⬇ 下载 paprika-recipe-importer v1.0.0(免费)

文件大小: 3.15 KB | 发布时间: 2026-4-16 17:55

v1.0.0 最新 2026-4-16 17:55
Initial release of paprika-recipe-importer.

- Converts recipe text, transcripts, or image descriptions into a .paprikarecipes file for import into Paprika Recipe Manager (https://www.paprikaapp.com/)
- Extracts only recipe details actually present in the source; never fabricates information.
- Supports a range of fields: title, ingredients, directions, description, notes, servings, times, source, categories, difficulty, rating, nutritional info.
- Delivers the import file and explains how to use it in Paprika.
- Lists which fields were filled and which were not found for transparency.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部