Skip to content

Instantly share code, notes, and snippets.

View Jacopx's full-sized avatar
๐ŸŽฏ
Focusing

Jacopo Nasi Jacopx

๐ŸŽฏ
Focusing
View GitHub Profile
@Jacopx
Jacopx / RungabGPX.py
Created September 26, 2018 13:41 — forked from hutattedonmyarm/RungapGPX.py
Rungap for iOS exports GPS data as JSON file in the free version. This script converts it to GPX. Tested with python3.6. Might need to install required modules. Simply place either the metadata and data json files, or the complete zip file in the same directoryas the script and run it. Warning: Does barely any error checking
import xml.etree.cElementTree as ElementTree
import json, pytz, zipfile, unicodedata, re
from datetime import datetime
from os import listdir
from os.path import isfile, join
import glob
def slugify(value):
"""
Normalizes string, converts to lowercase, removes non-alpha characters.