-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.get_measurements problem #151
Comments
Same thing happening to me, no measurements are found on that page, looks like the webscraper for this part will have to be redone, seems like they took out any easily identifiable id's and I don't have experience parsing XML's so hopefully someone can find a fix for this |
What's the function to get a mfp page? Pending a fix, I'd like to retrieve |
@ColorfulQuark You can see the process in Then in line 531, we call It'd be great if you or someone could figure out the XML scraping. I tried for like an hour but with the lack of ids, it's really hard for me to find the information I'm looking for, especially because I've never worked with XPath |
@TimOgden I was looking for the function that will return the contents of a page given the URL, Something like
The data is a list of dicts: |
Can't you use |
Oh I just found them, good catch, that should be perfect |
That parses |
Weird, it seems like I get the page and am logged in just fine using |
EDIT: this is now working:
|
|
Sorry @ColorfulQuark, I was gone for the weekend. I just ran your script and it seems like it works perfect and also grabs the whole dataset instead of just the first page. I can integrate this into the actual code and make a PR so it will be fixed for everyone. |
@TimOgden Sounds good. Glad you like it. With luck it will fit in with just a bit of tweaking to just get data between two dates (rather than my everything back to a specified date), add annotations, etc. I don't think the mainline has a latest_measures function, but I find it useful. |
Late yesterday (18 Jan)
client.get_measurements
stopped working for me. Logging in withclient = myfitnesspal.Client()
andclient.get_date
continue to work.I did notice the design of the https://www.myfitnesspal.com/measurements/check-in page changed, so perhaps that's related.
The text was updated successfully, but these errors were encountered: