Skip to content

Instantly share code, notes, and snippets.

@burczyk
Last active October 31, 2020 14:06
Show Gist options
  • Save burczyk/6dfdbec08fc893892f84ff8c60859789 to your computer and use it in GitHub Desktop.
Save burczyk/6dfdbec08fc893892f84ff8c60859789 to your computer and use it in GitHub Desktop.
Strava gpx importer
#!/bin/bash
for i in {1..100}
do
file=`ls gpx | head -n 1`
echo $file
curl -X POST https://www.strava.com/api/v3/uploads -H "Authorization: Bearer ACCESS_TOKEN" -F data_type="gpx" -F file=@gpx/$file
mv gpx/$file gpx-done
echo
echo
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment