Extends the Strava v3 API using web scraping and web browser interactions
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file stravainteractweblib-0.0.3.tar.gz
.
File metadata
- Download URL: stravainteractweblib-0.0.3.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34329bf14a2fb1aa873bee36cb19a14db9967479614b6ba2282aab0f927d89dd |
|
MD5 | 5b8d57b19c61ba7568e08fad09d3609c |
|
BLAKE2b-256 | 35359bf43147772e1d43791be196f00bded02c9bb480198721922f6c78b5859c |
File details
Details for the file stravainteractweblib-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: stravainteractweblib-0.0.3-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9091f3c5cf9d891f853386f26461f571e47386087c4b1190acf6920800598e3e |
|
MD5 | 65edd566d07a2e0d78f8f5a169b0d280 |
|
BLAKE2b-256 | c52480954044e0a1bd077cafd6d866af393f6e7fad7ef884909f9bfe9636b18c |