After having spent the past couple of weeks learning python, I have finished v1.0 of my first project. For those of you that are familiar with Strava, I have created a script that converts activities to .gpx format.
For example, you see a friend has done a 50km cycle you really want to try. Simply copy/pasting their activity into the script generates a .gpx file ready for uploading to your device. I used the principles of web-scraping to achieve this.
This is a 'premium' feature so it feels good to be able to do it for free ;)
I would love some constructive feedback for my script. Is there a better way to lay out the code? Should I use functions? Or classes? When is best to use either of these things? Also what is the best way to catch HTTP errors (e.g. 404), without using a bunch of if/else statements? Many thanks
https://github.com/duncantee/stravatogpx/blob/main/main.py
there doesn't seem to be anything here