Create Strava account on www.strava.com and add/track at least one activity
Log in and create an API application on https://www.strava.com/settings/api, fill out a form, use ‘localhost’ as the Authorization Callback Domain
You will get API Application, go to My API Application (hover over your profile icon in the top tight corner and go to settings). If you don’t see this as an option in the navigation bar, go back to https://www.strava.com/settings/api and make sure the application was set up.
You want to record Client ID and Client Secret
You will need access token to get your data ( Unfortunately, we can’t use the one on this page. That is because the provided tokens give us a scope/access level of “read.” The way Strava has set up their authorization, we need a scope of “read all” to work with our activities.)
Replace your_client_id with your actual client id in the following link. Then paste it into your browser search bar and hit enter. You will see something like a screen below, click on Authorize button
Your browser will probably error. That’s ok. Within this error, we actually get the piece of information that we want from Strava. Url should now look like:
Copy down whatever the code is between code= and the & sign (where my snippet says “somecode”).
Copy the code below from our notebook and in auth_url (line 5) use your client_id from strava API application (replace your_client_id), your client_secret from strava API application (replace your_client_secret) and your access token from step 7 (replace your_acces_token)
DO NOT FORGET You have to refresh your access token any time you call it (execute the code) (you will go to step 6 again), but you can just download your data and upload the file to project instead by clicking on arrow on right down corner under the table.
0
Morning Workout with Kristýnka 🏋🏼♀️
Workout
1
Deepnote Ride with breakfast 🥐
Ride
2
Morning Ride
Ride
3
Sunday Ride 🚴🏼♀️
Ride
4
Evening Ride
Ride
5
Morning Workout
Workout
6
Morning Run
Run
7
Deepnote Ride
Ride
8
Trénink s Kristýnkou
Workout
9
Ride 🚴🏼♀️
Ride
0
Morning Workout with Kristýnka 🏋🏼♀️
Workout
1
Deepnote Ride with breakfast 🥐
Ride
2
Morning Ride
Ride
3
Sunday Ride 🚴🏼♀️
Ride
4
Evening Ride
Ride