This is a simple tool to export your Lift.do habits in a .csv file.
[php useadvancedfilter]
if ($_POST[‘lifturl’]) {
echo ‘[ul]’;
preg_match_all(‘/users\/([00-9a-z]+)/’, $_POST[‘lifturl’], $matches, PREG_SET_ORDER);
$a=$matches[0][1];
if ($a) {
$lifter_url=’http://lifter.wanderingstan.com/users/’.$a;
echo ‘[li][strong][large][a href=”‘.$lifter_url.'”]Click here to download your habits[/a][/large][/strong][/li]’;
print(‘[li]Or copy this into a cell of Google Spreadsheets:’);
print(‘[ul][li][strong][tt]=ImportData(“‘.$lifter_url.'”)[/tt][/strong][/li][/ul]’);
print(‘[/li]’);
}
else {
print “[li][strong]Sorry, that doesn’t seem to be a valid Lift URL.[/strong][/li]”;
}
print(‘[/ul]’);
print(‘[br][br][br][br][br][hr]’);
}
[/php]
- Go to Lift.do and log in. (Link will open in a new window.) You should be on your user page, listing your habits.
- Copy the address in your browser. It will look something like http://lift.do/users/5046d263bf6a2411642a
- Close that window, come back to this page and paste in the box above.
- Click “Export my Habits”
- Click on the link to download your file! (It may take a few seconds the first time.)
(For number nerds: You can also add ?extract_numbers=1 to the URL if you would like get any numerical data out of your comments. E.g. “Slept 7 hours” would become “7” in the csv.