With this script you can download all your activities from www.runtastic.com in .gpx format. Runtastic removed this feature wich makes it very difficult to change your tracking service, thanks for that.
❗ Only tested in Google Chrome 41.0+
Login to your runtastic account and go to the page where all your activities are listed.
Then open the developer tools of Chrome with CMD + OPTION + I
and go to the console tab. Now copy and paste the following script in the console line and press enter. The usually content should disapear and the downloads should start. I used it to export around 290 activities and it worked fine.
$('body').html('');
$.each(index_data,function(i, value)
{
var id = value[0],
url = 'https://' + app_config.domain+user.run_sessions_path+value[0] + '.gpx',
filename = 'RUNTASTIC-' + value[1] + '-' + value[0] + '.gpx';
$.ajax({
url: 'https://' + app_config.domain + user.run_sessions_path + id + '.gpx',
success: function(data, textStatus, jqXHR)
{
if(textStatus == 'success')
{
$('<a/>', {
'href' : 'data:text/plain;charset=utf-8,' + encodeURIComponent(jqXHR.responseText),
'download' : filename,
'id' : id
}).html(filename)
.before(i + '. Downloaded: ')
.after('<br/>')
.prependTo('body');
$('#' + id)[0].click();
}
else
{
console.log(textStatus);
}
},
dataType: 'xml',
beforeSend: function(xhr){
xhr.setRequestHeader('X-Requested-With', ' ');
},
});
});