Skip to content

This repository contains code which allows to fetch your activity data from strava

Notifications You must be signed in to change notification settings

egubi/strava-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Strava Activity Data Retrieval using Python

This Python script allows you to retrieve your activity data from Strava's API and store it in a local .csv file

Installation

  1. Clone this repository to your local machine.
git clone https://github.com/yourusername/strava-activity-retrieval.git
cd strava-activity-retrieval
  1. Install the required packages using pip.
pip install -r requirements.txt

Configuration

  1. Create a .env file in the project directory with the following content:
CLIENT_ID=XXXXXXXX
CLIENT_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
REFRESH_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Replace every field with your data.

Usage

Run the Python script to retrieve your Strava activity data:

python main.py

Follow the on-screen instructions to authorize the application and retrieve your activity data. The data will be saved to a CSV file in the data/ directory with current datetime suffix.

Happy analyzing your Strava activity data!

About

This repository contains code which allows to fetch your activity data from strava

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%