Python script to download Strava API stream data directly to a CSV
#Running
- Install Python 2.7.12
git clone [email protected]:ryanbaumann/Strava-Stream-to-CSV.git && cd Strava-Stream-to-CSV
'pip install -r requirements.txt
- Navigate to https://www.strava.com/settings/api#_=_, create and app, and get your API client ID and client secret.
- Create a new file
client.secret
and populate it with<clientID, client Secret>
all on the same line. - Open strava-to-csv.py as a text file. Update the
limit
variable to download the number of activities that you want. - Run
python strava-to-csv.py
- Your data will be in the CSV file in the repo base directory.
Related blog post at https://ryanbaumann.com/blog/2015/4/6/strava-api-cycling-data-for-visualization