A Python script which allows users to export workout data from Mi Fit and Zepp applications.
This repository contains an example Python implementation for the article.
uv sync
The script authenticates the user with the API then exports all workouts to the output directory using the specified file format.
python3 main.py [-h] [-e ENDPOINT] [-t TOKEN] [-f {gpx,geojson,gpkg,parquet,shp,csv,json,xlsx,sql,sqlite3,xml,html}] [-o OUTPUT_DIRECTORY]
The latitude/longitude parsing is based on Miroslav Bendík’s MiFitDataExport project.
If the authentication does not work out of the box, you can also provide the token manually:
Export data
Network
tabExport data
againapptoken
header or cookie-t
argument