Skip to content

Instantly share code, notes, and snippets.

View henryhe1's full-sized avatar

Henry He henryhe1

View GitHub Profile
@henryhe1
henryhe1 / nrcParser.py
Last active June 8, 2020 23:42
This script parses through the json files for the datetime, distance, and pace for each of your Nike Run Club runs, and writes it into a csv file.
# How to get your Authorization Bearer token https://yasoob.me/posts/nike-run-club-data-visualization/
# Bash script to download your runs in JSON format https://gist.github.com/niw/858c1ecaef89858893681e46db63db66
# Use this script once you have a folder of jsons ready for parsing --> csv
# The script extracts datetime, distance, and pace, but there are other parameters you can retrieve as well, just take a look at the json structure
import json
import os
import datetime
import csv