coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
789 stars 138 forks source link

Handle non-existed nutritional info in search results #160

Closed hannahburkhardt closed 1 year ago

hannahburkhardt commented 1 year ago

If there's no search-nutritional-info element, don't try to parse calories and brand information. This might be the case if the search results include user recipes. To test, search for a string that would return one of your recipes on https://www.myfitnesspal.com/food/search

Fixes #135