Download Activities from Strava

October 10, 2024

Table of Contents

  1. Introduction
  2. Create Swagger Client

Introduction

Create Swagger Client

According to the Strava docs this is needed. Install via swagger codegen

brew install swagger-codegen

Generate swagger client based on strava docs

swagger-codegen generate -i https://developers.strava.com/swagger/swagger.json -l python -o generated/python

Note: For installation in a virtual environment it is easiest to create a git repository of the generated swagger client and then install via

 pip install git+https://github.com/git_user_name/repository_name.git