Lifter

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]

  1. Go to Lift.do and log in. (Link will open in a new window.) You should be on your user page, listing your habits.
  2. Copy the address in your browser. It will look something like http://lift.do/users/5046d263bf6a2411642a
  3. Close that window, come back to this page and paste in the box above.
  4. Click “Export my Habits”
  5. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *