Skip to main content

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

stravainteractweblib-0.0.4.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

stravainteractweblib-0.0.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file stravainteractweblib-0.0.4.tar.gz.

File metadata

  • Download URL: stravainteractweblib-0.0.4.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for stravainteractweblib-0.0.4.tar.gz
Algorithm Hash digest
SHA256 1f2bf0c56d39a98ae64f8b2e6980827731b7570bb6e7fdc4786f34d209317adb
MD5 f908c04a46d78b4d0d881ba762bf34ce
BLAKE2b-256 77d06734117c951317f81e24816ef520d96b09805f984b87e0d13f41d3dc20df

See more details on using hashes here.

File details

Details for the file stravainteractweblib-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for stravainteractweblib-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 58a7c9423b78fe83507a1943c9d9aa824aead3d13acc0d0264834a5efa6a2666
MD5 f9646eaf37b4aabfff6ef8cb72148162
BLAKE2b-256 3a6481e4339ba775fbcbb847c25b23f3c7603b53c321bd7b08419186fbc14d51

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page