LegendOfTheFox / Pull-Strava-Activities

Walkthrough on how pull Strava Activites Via Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Overview

A quick few scripts to help out some fellow athletes pull their data from Strava for further analysis.

Prerequisites

  • Python 3
  • Requests

Instructions

Step 1

Get Client ID & Client Secret from Strava Athlete Page on Strava.com

image

Step 2

Get Auth Code From, auth the App, and grab the code entry that appears in the URI. "http://www.strava.com/oauth/authorize?client_id=46575&response_type=code&redirect_uri=http://localhost/exchange_token&approval_prompt=force&scope=read,activity:read"

![image](https://user-images.githubusercontent.com/8893098/148694966-70c2bb00-4705-4824-b3f0-c34d3d1c4f79.png)

Step 3

Paste that code on auth.py into the auth_code variable and run auth.py

Step 4

grab the Access Token that is printed and pasted into activities.py into the access_token variable

Step 5

Run activities.py, note that we are just printing the raw activities as JSON, you can take this JSON and dump it into a file or drop it into a database, etc

About

Walkthrough on how pull Strava Activites Via Python


Languages

Language:Python 100.0%