hhursev / recipe-scrapers

Python package for scraping recipes data
MIT License
1.6k stars 505 forks source link

fix: AllRecipes Missing Ingredients #1155

Open michael-genson opened 1 week ago

michael-genson commented 1 week ago

AllRecipes changed their HTML structure, which breaks our workaround for pulling recipe ingredients. For more information, see the bug report.

Since the class seems to be generated (a few other sites use a similar class name) I added a slightly more robust class selector, in case it ever changes again.

Fixes https://github.com/hhursev/recipe-scrapers/issues/1154

michael-genson commented 1 week ago

Most of the dif is the updated HTML. The actual code change is only a few lines