Closed thw26 closed 5 years ago
@thw26 In terms of which data to use, the best approach would be to just extract the "url" property and then use the import feature in this app to reimport them, since these guys don't seem to care much for the schema.org format that we're using.
The main issue aside from that is that MyCookBook needs to expose an API, and we need to authenticate against that API before we can do any sort of importing. I haven't been able to find any documentation on that, so I don't think that will be easy.
The most reliable approach for now would involve so much manual labour that you might as well just copy the URLs by hand and import them into this app :sweat_smile:
Just be sure, what you, @thw26, want: Is your intention to import the recipes from the backup or from the website?
@mrzapp Just importing the backup file could be working. Here is a description to unzip a file using JS. Then the client could parse the XML file as mentioned above and send API requests to the cookbook app to save the individual recipes. What do you think on this approach? I have to admit that JS is not my best side of programming so I would be not of much usage here, sorry.
The examples I shared were all web resources somewhat intentionally, in case there was desire to obtain the original information. MyCookBook does let one add their own recipes and modify recipes.
The thought was to offer Nextcloud Cookbook as an alternative to MyCookBook, which granted has mobile apps and is in that way ahead of this project.
Importing from a backup file was my thought. Utilizing the URLs would import the recipe but not a user's comments or personal pictures if they had added any to their MyCookBook recipes.
All in all, I think this issue, even though it may be a great feature, has 2 major downsides:
I hate to be that guy, but this smells too much like feature creep, so I'm closing the issue for now.
The popular site https://mycookbook-online.net, which has apps for mobile devices as well, would be a great source for imports.
Taking a backup (on Android) of MyCookBook's recipes (.mcb, which is a .zip) and extracting the contents yields a my_cookbookDATE.xml file. The contents of that .xml file store recipes in the following format.