Created
November 9, 2021 22:22
-
-
Save squeezer44/60cf3956539752ae9053087f658f308c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# ------------- | |
# Imports | |
from stravalib.client import Client | |
import pprint | |
# ------------- | |
# Get a certain activity | |
client = Client(access_token='I-AM-THE-TOKEN') | |
activity = client.get_activity(1234567890) | |
my_dict = activity.to_dict() | |
print('Count of entries: ' + str(len(my_dict))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment