This PR adds support for recipes from My Korean Kitchen. There was full schema support for this site for just about everything except ingredient groups, which needed to be configured manually.
I originally just scraped the HTML data directly for the ingredient groups, but the content on the page does not directly match the schema data which results in a mismatch between ingredient names. The solution I found was to grab the schema names directly from self.schema.ingredients() by keeping track of ranges (for example, the first group has 7 ingredients so the first 7 ingredients in the array belong to that group, the second group has 6 ingredients so ingredients 8 to 13 belong to that group, etc.). Do let me know if there's a better way to implement this : )
This PR adds support for recipes from My Korean Kitchen. There was full schema support for this site for just about everything except ingredient groups, which needed to be configured manually.
I originally just scraped the HTML data directly for the ingredient groups, but the content on the page does not directly match the schema data which results in a mismatch between ingredient names. The solution I found was to grab the schema names directly from
self.schema.ingredients()
by keeping track of ranges (for example, the first group has 7 ingredients so the first 7 ingredients in the array belong to that group, the second group has 6 ingredients so ingredients 8 to 13 belong to that group, etc.). Do let me know if there's a better way to implement this : )Resolves #1093