

You can use this script to upload a non-Runkeeper file in CSV format. You could also try to use other solutions - some ideas that solved other issues here. You can try opening the file in a text editor and looking for issues - look for missing closure tags (e.g., ) - that was the issue with one of my files. I personally ran into a few errors of "malformed GPX files".If you do need to modify the CSV for some reason (e.g., mine had a run with a missing distance, not clear why), do it in Sublime or another text editor. Even if you just open it and save it with no modification, Excel changes the date formatting which will break this script. Do NOT modify or even save (without modification) the CSV from Excel.It will log everything in a file strava-uploader.log.It will try to catch various errors, and ignore duplicate files.It will move successfully uploaded GPX files to a sub-folder called archive.From May 2020 onwards, newly created applications have a limit of 100 requests every 15 minutes.
#GPX VIEWER TO STRAVA FREE#
This is probably too conservative - feel free to adjust. The uploader.py script will automatically wait for 15 minutes when the upload count hits 599.

You can add more - be sure to grab the RunKeeper definition and the Strava definition and add to the activity_translator function.

The script will crawl through the cardio activities csv file line for line, uploading each event.Or paste it in the uploader.py file as the access_token variable, replacing None.(Preferably) Set the environment variable STRAVA_UPLOADER_TOKEN before running uploader.py, e.g.
#GPX VIEWER TO STRAVA CODE#
You should then be shown a code - copy this, and either: It should open a browser and ask you to log in to Strava. Run the command python strava_local_client.py get_write_token where you replace and with the codes you pulled from the Strava API Management Page. Next, we need to get an Authorization Token from Strava for your Athlete account.
#GPX VIEWER TO STRAVA INSTALL#
Install the requirements - from any shell run pip install -r requirements.txt Open a shell (accessed by using the "Terminal" application on MacOS) and cd to the data directory (the folder you just downloaded - should be something like "runkeeper-data-export-1234567"). gpx files for all of your GPS-tracked runs, and two spreadsheets - "measurements.csv" and "cardio_activities.csv". Unzip the file - the directory should have. Define your time range, wait a minute or two, and then click download. Go to the Settings page, and look for "Export Data" near the bottom. Next, you need to get your data from Runkeeper. Note the Client ID and Client Secret - you will need them later. Go to the Strava API Management Page, and create a new application. Usage:įirst, you need to register an application with the Strava API service. Uses stravalib to interact with the Strava API. Uses the Strava v3 API (documented here) to upload GPX and CSV activities exported from RunKeeper.īorrows liberally from Strava API Experiment and Strava Upload projects.
