Open Lucent opened 1 year ago
I doubt it. The design of this whole package is based on scraping the HTML and parsing I would be shocked if it worked at all still.
I've long since stopped using MyFitnessPal (I'm the creator of the RP Diet Coach app) but I'd be happy to review and merge some PRs if you want to contribute and maybe eventually transfer ownership if that all goes well.
I last used it a few years ago and I think it was questionable even then. I ended up using a this python library in a backend that I wrote, then made requests to that backend from my JS frontend.
I know it's not the answer you are looking for, but I figured I would let you know that there are other libraries that can help you get the data you need. Good luck 😄
After some testing, it seems that it's no longer functional, as andrewzey suggested, the solution is parsing the website HTML. The code has since changed. It is no longer possible to retrieve data.
Looks like they're sending a blank page over HTTP and hydrating with JavaScript so to continue working it'd probably need to switch to some headless solution like Playwright.
Is this at all still functional? Can it be modified to be so?