hhursev / recipe-scrapers

Python package for scraping recipes data
MIT License
1.66k stars 514 forks source link

Issue with amount fractional returned for ingredients #948

Closed dips83 closed 8 months ago

dips83 commented 9 months ago

I noticed this issue for this particular recipe

https://www.allrecipes.com/recipe/15985/grandmas-corn-pudding/

The ingredient list returns a decimal amount for some of the fractions on the site.

This recipe when scraped returns the fractions.

https://www.simplyrecipes.com/shakshuka-with-feta-olives-and-peppers-5114919

I think it would make sense to be consistent and return fractions if fractions are on the recipe. For now i'm just rounding to 2 decimals and running with it.