Skip to content

An easy way to get the total distance all the members of a Strava club have done.

License

Notifications You must be signed in to change notification settings

andresindlp/strava-club-mileage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strava Club Mileage

An easy way to get the total distance all the members of a Strava club have done.

enter image description here

How to:

  • Make sure Python works on your machine.
  • Get the club code (not the name) from the URL: club code

Keep in mind that to be able to get information from clubs, the Strava account you get the API key from needs to be in said clubs. I've found Strava limits the amount of clubs you can join in 24h to 5 currently.

  • Edit the codedb.json file according to your needs. Make sure to set the data both on the first part of the file and on the second one as per the example file provided.

codedb explanation

  • Install the dependencies with pip install -r requirements.txt
  • You need to already have a Discord application and its API key, use this tutorial if you don't.
  • Set the API keys by editing discordbot.py if running locally.
  • If using Heroku set the following variables: heroku vars

Usage:

Command Function Scope
!strava <club> Get the data from the specified club Can be used by anyone
!list List all the clubs located in the database Can only be used a server administrator*

*This is done to prevent hitting the API request limit by people spamming the command.

This project is licensed under the terms of the MIT license.

About

An easy way to get the total distance all the members of a Strava club have done.

Resources

License

Stars

Watchers

Forks

Languages