Skip to content

knaak/strava

Repository files navigation

Create the private directory, place a file called credentials.json in that folder with this format: { "client_id" : "", "client_secret" : "", "code" : "", "club_id" : "" }

Steps.

  1. Run generate_tokens.py to build the strava_tokens.json file.
  2. run "download_activities.py" to set the activities that you want to analyse.
  3. run "download_segment_instances.py" to pull the segment data for each of your activities.
  4. run "download_segments.py" to pull the global segment data for each of your segment instances.

Troubleshooting:

If you get rate limited or you mistakenly write cache files that are limited, use the clean_cache_ratelimit.py to remove. If your tokens expire, trying running refresh tokens to get a new one.

need a new code? http://www.strava.com/oauth/authorize?client_id=[REPLACE_WITH_YOUR_CLIENT_ID]&response_type=code&redirect_uri=http://localhost/exchange_token&approval_prompt=force&scope=profile:read_all,activity:read_all

callback: http://localhost/exchange_token?state=&code={code}&scope=read,activity:read_all,profile:read_all

helped by: https://medium.com/swlh/using-python-to-connect-to-stravas-api-and-analyse-your-activities-dummies-guide-5f49727aac86

About

personal project mining strava for data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages