kjkjava / garmin-connect-export

Download a copy of your Garmin Connect data, including stats and GPX tracks.
MIT License
314 stars 134 forks source link

Converted to Python 3, added csvonly data format #5

Open v01dma1n opened 8 years ago

v01dma1n commented 8 years ago

Hi, Thanks a bunch for the script! To adapt it to my needs, I added 'csvonly' data format value, which suppresses downloading GPX data and retrieves activities to CSV file only. While doing this, I converted the script to Python 3.
Irek

kjkjava commented 8 years ago

Hi Irek,

Thanks for the contribution! Do you know if these Python 3 changes will still work the same under Python 2.7?

Thanks, Kyle

v01dma1n commented 8 years ago

Not a Python buff... Sorry... duno.

v01dma1n commented 8 years ago

Did some reading about this whole Python 2 vs. Python 3 story and the change for 'csvonly' does not rely on anything Python 3 specific. On the other hand, I liked the changes proposed by lefty01 related to using argparse. So, if you decide to merge his changes, could you remember about 'csvonly'? Thanks a bunch again!

djacobson commented 6 years ago

Just a note, I really like this example. I discovered that Garmin has changed their download URLs (yes, again) to the following format:

'http://connect.garmin.com/modern/proxy/download-service/export/gpx/activity/{0}' ...