Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for strava-tools, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size strava_tools-0.1.0-py3-none-any.whl (12.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page