coddingtonbear / python-myfitnesspal

Access your meal tracking data stored in MyFitnessPal programatically
MIT License
794 stars 136 forks source link

Adding functionality to import friends' diary entries #106

Closed tsatska closed 3 years ago

tsatska commented 3 years ago

Added functions get_date_for_friend and _get_friend_url_for_date to grab a friend's diary entries given their username, if the friend has set their diary visibility to public.

coddingtonbear commented 3 years ago

Thanks for the patch, @tsatska -- I'd been planning on adding this myself, even, but hadn't yet found the time (#104)! There's just one thing: I think you might've missed a git add -- I don't see an implementation of get_date_for_friend in the PR here.

tsatska commented 3 years ago

Oops, added that now! @coddingtonbear

coddingtonbear commented 3 years ago

Merged as part of 1dbeeff -- note that I made a few changes to remove duplicated logic & updated the readme entry to reflect that slightly-different calling signature that could be used to use the existing logic.

Cheers & thanks for the patch!