Skip to content

Extends the Strava v3 API using web scraping and web browser interactions

License

Notifications You must be signed in to change notification settings

ConstantinB9/stravainteractweblib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Extends the Strava v3 API using web scraping and web browser interactions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages