How To Analyze Your Strava Data

So maybe you've read my blog where I analyzed my Strava running data and want to do the same. Or perhaps you've wanted to do some analysis on your Strava running data for a while now, but don't know where to start. Well, you've come to the right place!

Related: Running Analysis Using my Strava Data

  1. Navigate to Strava's website (Browser edition)
    1. Under your profile icon, click on "Settings"
    2. Navigate to "My Account"
    3. Scroll down to "Download or Delete Your Account" and press "Get Started"
    4. Press "Request Your Archive"
    5. Wait patiently! It took only a few hours to get my data from them.
  2. Visit my strava-running-analysis Github repository (repo) here. Be sure to read the README file and check for the repos status
  3. Make sure you have Git installed on your computer
    • If not, you can download it here
  4. Make sure you have Python installed on your computer
    • If not, you can download it here
  5. Open Terminal (Mac or Linux) or Command Prompt (Windows)
  6. Navigate to the directory where you want to clone the repo
    • Type 'cd path/to/your/directory', for example, something like:
      cd Users/zoemcbride/repos
  7. Clone the repo:
      git clone https://github.com/zoemcbride/strava-running-analysis.git
  8. Navigate to the repo's directory:
      cd strava-running-analysis
  9. Create a virtual environment (my-venv) (Note: some users may find running 'python3' more explicit than just running 'python'):
      python -m venv my-venv
  10. Source the virtual environment:
      source my-venv/bin/activate
  11. Install the requirements:
      pip install -r requirements.txt
  12. Run the inputs.py script (Note: some users may find running 'python3' more explicit than just running 'python'):
      python inputs.py
  13. As the script starts, it will prompt you to enter information, such as the location of the activities.csv data from Strava
  14. The script will load about 7 graphs sequentially -- you may need to close the graphs to move on to the next one, but they will be saved for you under the "output_graphs" folder
  15. Enjoy!! :)