Support for importing recipes from meal-kit services #2391
Replies: 4 comments 5 replies
-
Mealie already supports rich migrations from other recipe management services via data migrations, separate from URL scraping. Currently there's support for Nextcloud, Chowdown, Copy Me That, and Paprika. If there's another app you'd like to see supported, let us know and we can take a look! Separately, Mealie also has OCR support, so you can import recipes by scan using the built-in OCR tool to extract text without needing to copy everything manually. |
Beta Was this translation helpful? Give feedback.
-
I want to add that this would be great too, i get a lot of my recipes from meal kit sites. While a few meal kit sites do support scraping without a login, the vast majority do not. Most offer a PDF version of their recipes which is easy enough and while it does require a bit more work than scraping, still does a lot of the work for you. It would be great though if an option for using OCR on PDFs was available as that would at least be a nice easy solution to get the recipe started without having to throw the PDF through another app |
Beta Was this translation helpful? Give feedback.
-
I think the generally better solution here is to implement a HTML api where you can provide HTML to be scraped which can be passed to the recipe scraping library. I had submitted a PR upstream to support HTML directly with this intention in mind but never got around to implementing it. Accepting HTML directly would 1) allow us to build an Upload HTML section in the UI and 2) allow someone to build a chrome extension that would do that whole process for them.
I genuinely have no idea how this could be implement in a generic way. Working with PDFs reliably is basically impossible. |
Beta Was this translation helpful? Give feedback.
-
FYI you can now import recipes manually using HTML or JSON: #4274 (the JSON has to be in https://schema.org/Recipe format) If we can't reach the site (e.g. meal-kit services that require a login) you can manually copy/paste the HTML from the site yourself For the use case of PDFs, your best bet is still converting to an image and importing that way (which uses OpenAI for OCR) |
Beta Was this translation helpful? Give feedback.
-
Before submitting this feature request I have
COMPLETE AND FILL THESE OUT
Please Describe The Problem To Be Solved
Mealie works great for scraping recipes from recipe blogs, but if you want to add recipes from a meal-kit service to your meal planning, the work flow is very rough. URL import doesn't work and manual import requires converting PDF to PNG and adding steps and ingredients manually.
There are two problems with importing recipes from these services: 1) Services generally gate the recipes behind a sign-in; 2) They don't follow the recipe mark-up conventions that most recipe blog websites follow.
(Optional): Suggest A Solution
Solution 1 (Directly scrape from meal-kit website):
While they don't follow the blog recipe conventions, meal-kit services do tend to structure their recipes similarly to one another, and it should be possible to set up an import scheme that would be successful with most of them.
Mealie would then need support for gaining access to sign-in gated recipes, either through access token or user-provided credentials so the user can provide a URL (or it may be necessary to add some browser functionality to acount for differences in website functionality from service to service).
Solution 2 (PDF upload support)
Many meal-kit services provide the option of downloading PDFs of the recipes, and those that don't provide paper recipes that could be scanned and uploaded manually. There's already an old feature request for PDF import, but there may still need to be work done to automate more of the import process specifically for meal-kit recipes (or just improve the UX for manual imports in general).
Solution 1 would provide a better user experience overall, especially if it reaches parity with the recipe scraper support for blogs. PDF support may be quicker to implement and would add a valuable and versatile feature.
Additional Information
Beta Was this translation helpful? Give feedback.
All reactions