Prerequisites
- Firefox
- Selenium IDE (version 2.4.0 as of this article)
- Perl (any perl will do- no modules used)
Once the data is migrated, you can uninstall all of these if you wish
Instructions
- Download a csv of your LoseIt data
- On the LoseIt website, go to Reports->Weight
- Change the filter to Last 5 Years
- Click "Export to Spreadsheet" to download a csv
- Rename it to Weights.csv
- Convert csv to a Selenium test case
- Copy/paste the script below, save it as loseit-to-myfitnesspal.pl in the same place as Weights.csv
- Run perl loseit-to-myfitnesspal.pl from a command prompt
- This makes a file myfitnesspalscript.html in the same folder
- Use Selenium to add the data
- In Firefox: go to the MyFitnessPal website
- Go to "My Home" -> "Check In" -> "Edit Previous Entries"
- Ensure there's an "Add New Entry" button at the bottom
- Selenium
- Open Firefox, click the Selenium button in the toolbar (to the right of the home button; it was invisible for me except for the space it took up)
- File->Open... and choose the myfitnesspalscript.html
- Actions->Play entire test suite
- it should play through all the entries and input them into MyFitnessPal. Don't use Firefox while this is happening.
No comments:
Post a Comment