The script gets the all workouts out from the endomondo web-page and writes them as ascii. you need to touch 'cache.txt' before and to enter your account-email and password into the script
Further you must change the variable 'pages' to the sum of workouts, you find in the history.