Closed prabal97 closed 5 years ago
I'm not able to reproduce such a problem, @prabal97 --
In [1]: from myfitnesspal import Client
In [2]: c = Client('myusername')
In [3]: c.get_date(2018, 9, 25)
Out[3]: <09/25/18 {}>
In [4]:
But, from the traceback, it's clear that the problem is occurring when its trying to log-in. You may want to try making sure that the password you've saved for that account is correct.
Hey, thanks for the help, it's working now. though
import myfitnesspal as mfp
client=mfp.Client('chhibbar97') day=client.get_date(2018,9,25) Traceback (most recent call last): File "
", line 1, in File "/usr/local/lib/python3.4/dist-packages/myfitnesspal/client.py", line 491, in get_date complete = self._get_completion(document) File "/usr/local/lib/python3.4/dist-packages/myfitnesspal/client.py", line 266, in _get_completion if "day_incomplete_message" in completion_message.classes: AttributeError: 'HtmlElement' object has no attribute 'classes'
Your most recent comment looks like it's a duplicate of #68; given that your original problem appears to be resolved, I think this specific issue can be closed.
import myfitnesspal as mfp