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:
Remember session ? [Y/n]:
strava >> load --all
Loaded 149 activities
strava >> activities
Activities 171/171
Kudo Time                 Athlete               Sport Duration Distance Elevation Velocity Title
----+--------------------+---------------------+-----+--------+--------+---------+--------+--------------------------------
     2019-03-27 08:42:06  J************         Sport 11h 26m  2.54 km                     Marche matinale
✓    2019-03-27 09:14:07  N************         Bike  26m 47s  12.00 km           26.9 kmh Vélo au fit
✓    2019-03-27 10:49:02  L****** P*****        Ski   4h 45m   57.38 km                    Skiing in Norefjell with friends
✓    2019-03-27 11:48:03  M****** M*****        Run   1h 41m   19.00 km           5'18     Lunch Run
     2019-03-27 16:29:06  J***** B******        Bike  49m 51s  16.98 km           20.4 kmh Sortie à vélo dans l'après-midi
✓    2019-03-27 16:55:05  L*** A*****           Bike  58m 03s  33.29 km           34.4 kmh Mistral gagnant
✓    2019-03-27 17:16:00  R***** D****          Run   41m 07s  7.83 km            5'15     Evening Run
✓    2019-03-27 17:22:55  A******** N******     Run   57m 23s  8.60 km            6'40     Evening Run
     2019-03-27 17:30:12  J***** M*****         Sport 1h 00m                               Bodybalance
✓    2019-03-27 21:23:21  C**** P****           Sport 29m 00s                              Night Activity
strava >> kudo
Kudoing J******** for Marche matinale .. Ok
Kudoing J***** B****** for Sortie à vélo dans l'après-midi .. Ok
Kudoing J***** M***** for Night Activity .. Ok

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

If you're not sure about the file name format, learn more about wheel file names.

strava_tools-0.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file strava_tools-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: strava_tools-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.5

File hashes

Hashes for strava_tools-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e4d3ef67c38920efed9f8a38b5464f3f3e93bcd746a30a4ab0cc322f24b62a7
MD5 d4ab07e01d3a6ff415b7d2e812355c2c
BLAKE2b-256 51a316704d726aad94f3726125bb4f10fcace124ca1bcf552cd0d58ee8bb1702

See more details on using hashes here.

Supported by

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