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
- Navigate to Strava's website (Browser edition)
- Under your profile icon, click on "Settings"
- Navigate to "My Account"
- Scroll down to "Download or Delete Your Account" and press "Get Started"
- Press "Request Your Archive"
- Wait patiently! It took only a few hours to get my data from them.
- Visit my strava-running-analysis Github repository (repo) here. Be sure to read the README file and check for the repos status
- Make sure you have Git installed on your computer
- If not, you can download it here
- Make sure you have Python installed on your computer
- If not, you can download it here
- Open Terminal (Mac or Linux) or Command Prompt (Windows)
- 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
- Type 'cd path/to/your/directory', for example, something like:
- Clone the repo:
git clone https://github.com/zoemcbride/strava-running-analysis.git
- Navigate to the repo's directory:
cd strava-running-analysis
- Create a virtual environment (my-venv) (Note: some users may find running 'python3' more explicit than just running 'python'):
python -m venv my-venv
- Source the virtual environment:
source my-venv/bin/activate
- Install the requirements:
pip install -r requirements.txt
- Run the inputs.py script (Note: some users may find running 'python3' more explicit than just running 'python'):
python inputs.py
- As the script starts, it will prompt you to enter information, such as the location of the activities.csv data from Strava
- 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
- Enjoy!! :)