Skip to content

Project for working the Boulder County Open Space and Mountain Parks

License

Notifications You must be signed in to change notification settings

dkhawk/boulder-osmp-trails

Repository files navigation

boulder-osmp-trails

Project for working wth the Boulder County Open Space and Mountain Parks data.

Python Strava API Access

  1. To run, first install python 3.6 or above. I prefer the miniconda installation but any Python installation will do. if you are a pypi user.

Environment Setup

You will need an environment with two Python packages to run this code:

  1. stravalib pip install stravalib
  2. pandas (if it is not already in your distribution) pip install pandas

Make sure the environment is active before proceeding. If you aren't using conda, you can use the requirements.txt file to install both packages:

pip install -r dev-requirements.txt

  1. To run the script, open bash and run: $ python authenticate.py NOTE: if you run into any issues with missing packages please let me know. My conda install may have some things a classic python install doesn't.
  2. Follow the instructions. The output should be a .csv file with all of your strava activities as a proof of concept.

IMPORTANT you will need the secrets-chaya.txt file in order for this to works more later on how we will share secrets on this project! If you want, you can create a file from an api app you already have. SImply

  1. create a text file called secrets-chaya.txt
  2. Then in that file add two values: client_id,client_secret

This should work!

About

Project for working the Boulder County Open Space and Mountain Parks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published