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.5.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for stravainteractweblib-0.0.5.tar.gz
Algorithm Hash digest
SHA256 476f176e2a5e48d6abfbef72e2eb6caf60f1ae4b6988e6b59e61c6b7ac1e98ac
MD5 4649a5874cf5ff7bc5fee1f1065e2d02
BLAKE2b-256 5327b031c238aee2a5a2d15114e9bac96a30001c4c619a706dab565304e067e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stravainteractweblib-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 68f76b6b64c5a5560b646a8722ccc69385f70cca71ffbf34b179cb64a6bc6346
MD5 2a9c6e269454fc427e57740cc4019e8f
BLAKE2b-256 953922ad1e564471bd78d72d4a8639cb3e5160ab42b37c0ae8003695f64c1298

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