Extends the Strava v3 API using web scraping and web browser interactions. Extends stravaweblib and therefore stravalib functionality.
See stravaweblib, on how to authenticate
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)