This little script converts highlights and notes from Tolino readers to a machine consumable CSV format. It was written to import the highlights into Readwise, but can easily be adjusted to other use cases.
- PHP 5.3+
- Terminal
- Git
notes.txtfrom your Tolino
git clone git@github.com:minthemiddle/tolino-php.git- Copy
notes.txtto the root of thetolino-phpfolder (hence the path istolino-php/notes.txt) cd tolino-php- For Readwise:
php main.php- Upload the generated
output.csvCSV to Readwise - For other CSV usage:
- Adjust fields in script, e.g. use the now unused
typefield php main.php- this generates anoutput.csvfile⚠️ Always double check the CSV before processing, there might be errors!
- If a book has parentheses in the title, the author name is scrambled
- Input:
Title of book (with parentheses) (Lastname, Firstname) - Output:
Author: (with parentheses) (Lastname - I could not figure out the regex for that yet, if you can, please help
- Input:
MIT