Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geekodour/strava-to-sqlite
Create a SQLite database containing data pulled from Strava
https://github.com/geekodour/strava-to-sqlite
datasette sqlite strava strava-api
Last synced: 24 days ago
JSON representation
Create a SQLite database containing data pulled from Strava
- Host: GitHub
- URL: https://github.com/geekodour/strava-to-sqlite
- Owner: geekodour
- License: mit
- Created: 2023-12-09T11:26:35.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-12T14:01:27.000Z (11 months ago)
- Last Synced: 2024-10-10T22:22:21.898Z (about 1 month ago)
- Topics: datasette, sqlite, strava, strava-api
- Language: Python
- Homepage: https://pypi.org/project/strava-to-sqlite/
- Size: 48.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* strava-to-sqlite
** Get started
*** Install
#+begin_src shell
pip install strava-to-sqlite
#+end_src
*** Auth and fetch
#+begin_src shell
# - Allow auth via browser oauth flow
# - Saves credentials to database
strava-to-sqlite auth strava_dump.db# - Fetches and stores strava activities since last sync for all users
strava-to-sqlite sync strava_dump.db
#+end_src
*** Explore
Strava API sends [[https://developers.google.com/maps/documentation/routes/polylinedecoder][polylines]] which are transformed to [[https://datatracker.ietf.org/doc/html/rfc7946#section-3.1.4][GeoJSON LineString]] by ~strava-to-sqlite~ and can rendered on map with [[https://datasette.io/plugins/datasette-leaflet-geojson][datasette-leaflet-geojson]] and [[https://datasette.io/][datasette]].
#+begin_src shell
# assuming datasette is installed
datasette install datasette-leaflet-geojson
datasette strava_dump.db
#+end_src
** Roadmap
- [ ] Overall clean-up/refactor
- [ ] Add tests
- [ ] Client side rate-limiting and retries
- [ ] Option to fetch for individual user (currently fetches for all authenticated users)
** Links, Resources and Thanks
- Strava: [[https://communityhub.strava.com/][Forum]] | [[https://developers.strava.com/docs/#client-code][Strava API]] | [[https://developers.strava.com/docs/rate-limits/][Rate Limits]] | [[https://developers.strava.com/docs/authentication/][Auth]] | [[https://developers.strava.com/playground/][Swagger UI]]
- Similar Projects
- [[https://github.com/stravalib/stravalib][stravalib/stravalib]]
- [[https://github.com/brendano257/Strava2SQL][brendano257/Strava2SQL]]
- [[https://github.com/ghing/strava-to-sqlite][ghing/strava-to-sqlite]]
- [[https://github.com/yihong0618/running_page][yihong0618/running_page]]
- [[https://github.com/marcusvolz/strava_py][marcusvolz/strava_py]]