Create the private directory, place a file called credentials.json in that folder with this format: { "client_id" : "", "client_secret" : "", "code" : "", "club_id" : "" }
Steps.
- Run generate_tokens.py to build the strava_tokens.json file.
- run "download_activities.py" to set the activities that you want to analyse.
- run "download_segment_instances.py" to pull the segment data for each of your activities.
- 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.
callback: http://localhost/exchange_token?state=&code={code}&scope=read,activity:read_all,profile:read_all