Skip to main content

Strava Command-Line Tools

Project description

strava-tools

Library for web-scraping Strava data.

This library became as a fork from loisaidasam/stravalib-scraper with some extentions

  • a shell
  • load following activity feed
  • send batch kudos
  • display / filter activities

Note: Strava does have a developer portal complete with a proper API and examples. This web-scraping based library is written to complete the lack of feature of the standard API. Accessing Friends' acitivities and interations with them like kudoing.

Installation via PyPi:

$ pip install strava-tools

Command line:

To simply start the strava shell:

$ strava-shell
strava >>

Here is basic example on how to display, load and send kudos to people as batch

strava >> login
Username:
Password:
Loaded 10 activities
strava >> activities
Activities 10/10
Kudo time              athlete           title
----+-----------------+-----------------+------------------------------
✓    Today at 4:41 PM  Cyr*************  Parcour*************
✓    Today at 4:39 PM  Jay*************  Natatio*************
✓    Today at 4:24 PM  Der*************  Finishi*************
✓    Today at 3:41 PM  Ad *************  Afterno*************
✓    Today at 3:33 PM  Geo*************  Course *************
✓    Today at 2:44 PM  Nic*************  Randonn*************
     Today at 1:52 PM  Mad*************  Apprent*************
✓    Today at 1:08 PM  Céd*************  Derny t*************
✓    Today at 12:44 PM Mad*************  Apprent*************
✓    Today at 12:00 PM Nor*************  Belle a*************
strava >> activities -a mad
Activities 2/10
Kudo time              athlete     title
----+-----------------+-----------+-----------------------
     Today at 1:52 PM  Mad*************  Apprent*************
✓    Today at 12:44 PM Mad*************  Course *************
strava >> load 500
Loaded 82 activities
strava >> activities -a mad
Activities 3/92
Kudo time                  athlete     title
----+---------------------+-----------+-----------------------
     Today at 1:52 PM      Mad*************  Apprent*************
✓    Today at 12:44 PM     Mad*************  Course *************
     Yesterday at 12:44 PM Mad*************  Natatio*************
strava >> kudo
Sending kudo to Mad************* for Apprent*************
Ok
Sending kudo to Mad************* for Natatio*************
Ok
strava >> activities -a mad
Activities 3/92
Kudo time                  athlete     title
----+---------------------+-----------+-----------------------
*    Today at 1:52 PM      Mad*************  Apprent*************
✓    Today at 12:44 PM     Mad*************  Course *************
*    Yesterday at 12:44 PM Mad*************  Natatio*************

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

strava_tools-0.1.0-py3-none-any.whl (12.9 kB view hashes)

Uploaded Python 3

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