What files can I import?

It is possible to import some recipes from some files in the app or the website.

Currently are supported these following formats :

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    Florian Fahrenberger

    I would love to be able to import from some websites that are not supported yet (particularly sortedfood.com). I can easily write a parser for their website and output the result in any format I like. But I would like to keep any code I write as flexible as possible, so I have three questions for you:

    1. Are you planning to support the "Open Recipe Format" for input? It is in YAML (similar to JSON) and seems very open and future proof. So I might pick that one to write to.
    2. If not, can you give me the specifications for the MyCookBook file format? That would obviously be the second most convenient option.
    3. I will probably code this in Python, since I am most familiar with it. However, if you tell me "Do this in the language ... and we can just add the html parser to our website officially and support the site.", I will gladly do so. If import from sortedfood was possible, you will certainly have gained a Pro subscription. :-)

    Cheers,

    Florian

  • 0
    Avatar
    Florian Fahrenberger

    I found the description of the MyCookBook XML file format and am using that for now. :-) Works smoothly.

    If anyone at MyCookBook wants to take a crack at importing from sortedfood.com, here are usable xpath entries for the most important website contents:

    title = '//*[@id="recipeTitle"]/span[2]/text()'
    picture_url = '//img[@width="100%"]/@src'
    description = '//div[@itemprop="description"]/p/text()'
    ingredients = '//li/span[@itemprop="recipeIngredient"]/text()'
    instructions = '//p[@itemprop="recipeInstructions"]/text()'
  • 1
    Avatar
    Carine

    Hi Florian,

    We are able to import any html recipes that contain some strutured data:  JSON-LD code, schema.org, ... You can find some documentation here : https://developers.google.com/search/docs/data-types/recipe

    Moreover you can add your own parser on your android device : http://mycookbook-android.com/site/add-your-own-websites/

  • 0
    Avatar
    Florian Fahrenberger

    Hi Carine,

    this is amazing news. Thanks a lot, a very well programmed app. I'll try this as soon as I find the time. I am guessing I will still want to subscribe to be able to import more recipes from websites?

    Cheers,
    Florian

Please sign in to leave a comment.
Powered by Zendesk