Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 979 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 979 Bytes

stravainteractweblib

Extends the Strava v3 API using web scraping and web browser interactions. Extends stravaweblib and therefore stravalib functionality.

Authentication

See stravaweblib, on how to authenticate

Added Functionality

Changing Stats visibility

Stats cannot be set private by default using the strava API v3 and require the interaction with the edit page.

from stravainteractweblib import InteractiveWebClient

# Log in (requires API token and email/password for the site)
client = InteractiveWebClient(access_token=OAUTH_TOKEN, email=EMAIL, password=PASSWORD)

# Get the first activity id (uses the normal stravalib API)
activities = client.get_activities()
activity_id = activities[0].id

# set the heart rate data of the activity to private
client.set_stats_visibility(activity_id = activity_id, heart_rate = False)