hhursev / recipe-scrapers

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

v14: backport a few scraper fixes/adjustments from v15 branch. #1086

Closed jayaddison closed 1 month ago

jayaddison commented 2 months ago

Miscellaneous small scraper adjustments/fixups from v15 that I think may be worthwhile to apply to the current mainline / v14 series.

This should also make the comparison diff between the next v14 and v15 release easier to review (both for us and anyone considering using or redistributing v15 releases).

jayaddison commented 2 months ago

Converting to draft while considering whether raising an exception is the best course of action for fields that are not expected to be possible to extract from a particular website.

jayaddison commented 1 month ago

Generally I think the preferable approach is to emit warnings -- but continue to return None as a value -- when we have high confidence that a recipe site doesn't provide info for a particular field. I'll update this branch soon. Note that chefnini is also affected (total_time), although that isn't a v15-backport.