Last active
October 31, 2020 14:06
-
-
Save burczyk/6dfdbec08fc893892f84ff8c60859789 to your computer and use it in GitHub Desktop.
Strava gpx importer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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