Skip to main content
Answer

Tutorial Authentification with strava client_secrets.txt error

  • May 7, 2025
  • 2 replies
  • 56 views

In the tutorial at https://stravalib.readthedocs.io/en/v2.2/get-started/how-to-get-strava-data-python.html in the bottom part of Step 1

it seems like you should save your client secret and access token in the txt file. When we are loading the tokes in

client_id, access_token = open("client_secrets.txt").read().strip().split(",")

we read the client id and the access token, which is what we need later in the tutorial. So the text in the tutorial includes an error and should be changed to client id everywhere where secret value is mentioned.

Best answer by ActivityFix

Stravalib is a 3rd party (unofficial) library for using the Strava API in Python. I don't believe the Strava developers have any involvement with it. It's an open source library (https://github.com/stravalib/stravalib/) so if you find an issue with the documentation you can clone it, make the change, and submit your changes.

2 replies

Vincenzo
Superuser
Forum|alt.badge.img+27
  • Superuser
  • May 11, 2025

Ciao ​@EliasReutelsterz. Have you tried to get in touch with developers?


ActivityFix
Superuser
Forum|alt.badge.img+24
  • Superuser
  • Answer
  • May 11, 2025

Stravalib is a 3rd party (unofficial) library for using the Strava API in Python. I don't believe the Strava developers have any involvement with it. It's an open source library (https://github.com/stravalib/stravalib/) so if you find an issue with the documentation you can clone it, make the change, and submit your changes.