fawda123 / rStrava

Functions to access data from Strava's v3 API.
152 stars 31 forks source link

`athlind_fun` does not return year-to-date data or an all-time summary. #63

Closed brndngrhm closed 5 years ago

brndngrhm commented 5 years ago

I'm currently trying to recreate the summary that Strava provides on their website for the most recent 4 weeks, year to date, and all-time. I noticed the documentation for athlind_fun states it returns "A list with elements for the athlete id, units of measurement, location, monthly data, year-to-date data, and an all-time summary." but when i run it, I only get the following:

It doesn't seem to return year-to-date data or an all-time summary. I'm using package version 1.1.0.

btw I love this package! i made a dashboard with it to track my rides: https://brndngrhm.shinyapps.io/RideTracker/

fawda123 commented 5 years ago

Very cool dashboard! Unfortunately, the year-to-date and all-time summaries can't be scraped from the HTML. I think these tables are loaded with JavaScript, which require a different set of tools (see here). Also see my response to #53.

fawda123 commented 5 years ago

Added the help wanted label to see if anyone knows how to parse JavaScript loaded tables from within an R package.