![]() If previous_id and previous_id != END_ID : Previous_id = get_previous_activity_id(activity_id) Print('Issue getting the key for activity with id '.format(activity_id)) R = requests.get(url, headers=headers, cookies=cookies) ![]() 'From': get_previous_activity_id(activity_id): 'User-Agent': 'Some hobbyist runner and pythonista trying to bulk extract CSVs, get in touch if you have an issue with this', # Crawl politely, leave a way for them to contact you Click on it and copy the whole value of "Cookie" in Headers > Request Headers # Then, press F12, click on "Network", press F5, scroll to the very first element, it will have your as name. ![]() # To get started open garmin connect in Google Chrome, log in and grab the id of your latest activity as in ĮND_ID = 0 # Id to stop at if you've run this script before, leave 0 otherwise Here is the script: # This script runs through your Garmin Connect activities (New->Old) and saves them as CSV Possibility the add testing (what and how should I test?).Quality of overall structure & comments.Current script does the job but I'm really unsure regarding
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |