Strava will let you export all your activities just fine, but it is up to you to find out which activities correspond to biking vs. running, etc. Thankfully, they give you a nice activities.csv
file telling you some details for each file in the activities
folder.
Parse that activities.csv
file to pull out the activities we want based on certain parameters.
Modify the STRAVA_EXPORTED_FOLDER_PATH
variable in config.cfg
to point to your unzipped Strava Bulk Export folder.
On a computer that has Python installed:
$ python main.py
Parsing the strava_export_12345678/activities.csv file...
Copied 14 files to the exports/Alpine Ski folder
Copied 181 files to the exports/E-Bike Ride folder
Copied 1 files to the exports/Golf folder
Copied 36 files to the exports/Hike folder
Copied 1 files to the exports/Ice Skate folder
Copied 20 files to the exports/Inline Skate folder
Copied 13 files to the exports/Kayaking folder
Copied 6 files to the exports/Kitesurf folder
Copied 261 files to the exports/Ride folder
Copied 98 files to the exports/Run folder
Copied 56 files to the exports/Snowboard folder
Copied 1 files to the exports/Stand Up Paddling folder
Copied 11 files to the exports/Swim folder
Copied 145 files to the exports/Velomobile folder
Copied 1 files to the exports/Virtual Ride folder
Copied 6 files to the exports/Walk folder
Complete!
You will then see an exports
folder with folders inside of it each containing their respective unzipped (*.gpx.gz -> *.gpx) activities files.
- Drag these files into @erik's dérive browser utility to generate a heatmap
- Analyze them however you'd like!
- Create individual export folders for values other than activity type such as distance, elapsed time, gear, etc.
- Save heatmaps as images
- Save a heatmap video showing progression