coddingtonbear / python-myfitnesspal

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

How to get my daily kcal goal? #130

Closed diogosilva30 closed 2 years ago

diogosilva30 commented 2 years ago

Is this info available?

hannahburkhardt commented 2 years ago

It should be in the day object. Try:

import myfitnesspal

client = myfitnesspal.Client('my_username')

day = client.get_date(2013, 3, 2)
day.goals
coddingtonbear commented 2 years ago

I believe @hannahburkhardt 's answer here will get you to what you need, @spamz23; so I'm going to close this. Let us know if you're still stuck, though.