How Much of a 900-Recipe Paprika Library Actually Survives the Import into Mealie, and How to Repair the Rest
说明与用途
将 900 条 Paprika 料理导入 Mealie 只保留基本内容,丢失结构化元数据。使用简短的 Python 脚本通过 Mealie API 补全配料结构、难度、比例、收藏和营养信息,得到完整的库。
问题
Importing a large Paprika recipe library into Mealie loses structured metadata, ingredient quantities, additional photos, and user‑specific flags, making the resulting library incomplete and unstructured.
结果
The import preserves basic recipe content but loses structured metadata. A short Python script can patch Mealie via its API to restore ingredient structure, difficulty, scale, favorites, and nutrition, resulting in a functional, queryable library.
工作流
- 1. Verify Paprika export size and count with
unzip -l library.paprikarecipes | wc -l. - 2. Increase nginx
client_max_body_sizeif needed to allow upload of the large .paprikarecipes file. - 3. Upload the file via Mealie’s Migrations page and wait for the import to finish.
- 4. Run a script (Python 3) that paginates
/api/recipes, parses each recipe’s ingredient text, and patches Mealie with structured quantity, unit, and food fields using the Mealie API. - 5. For each recipe, also patch missing fields: difficulty, scale, favorites, and nutrition if desired.
- 6. Verify that primary photos are present and additional photos are handled if needed.
- 7. Test scaling, shopping list aggregation, and filtering to confirm repair.
- 8. Optionally run the import on a throwaway Mealie instance first to avoid idempotency issues.
- 9. Document any remaining gaps and plan manual corrections if necessary.
证据
The import itself runs inside the instance, from the Migrations page under group data management. You upload the .paprikarecipes file through the browser, so the whole library crosses your reverse proxy in one request.
Treat this as two separate jobs, the import itself, which is one file upload and a few minutes of waiting, and a scripted repair pass against the Mealie API, which is where the actual work sits.
- 记录日期: 2026-09-21T22:45:26.173Z