Since Readwise.io and Onyx Boox did not provide integration I decided to write it myself. It allows processing annotation.txt file from Onyx boox to csv file that can be uploaded to readwise.io or if you wish notify you every day with your quote using windows console
Install python if you don't have it otherwise. For linux activate and install using sample: Python 3.7 >
python3 -m venv venv
source activate_virtual_env.sh
file.txt
which is a file exported from NeoReader application as click on the annotations in the book and export
output.csv
which is formated to Readwise.io format ready to be imported thru option "import csv" thru Readwise webstie
If you want to test general workflow run first
python main.py --author test --title test --filepath data_input/Author_test-Title_test.txt --output_path output_test.csv --pipeline
-
Get the input file from your onyx boox Neoreader as .txt file
-
if you wish to generate .csv file to upload to readwise.io webpage
run code below
python main.py --author author --title title --filepath file.txt --output_path output.csv
- if you wish to send it directly to your notion databse
run code below
python main.py --author author --title title --filepath file.txt --output_path output.csv --pipeline
Once you did 1,2 and you got your output.csv file continue with
- Go to your readwise.io account and import highlights
- Select import csv file and select output.csv file
- Done
You can now send data to the notion database by providing the outputed .csv file. Get your database id and notion key from notion.
provide them in the files in notion_integration/notion_key.txt and notion_integration/notion_database.txt
notion_processing.py --filepath output.csv
Notion Template to duplicate with the supported schema: https://adamverano.notion.site/119999ea1a1d442c8889ef2bd25db803?v=800f2a9cf95c4480b0e454aaf7db3c00
You can send email to yourself using notify.py file.
You can use .csv database in that case just provide file to a file or write 'notion' to use your notion database that you saved
python -m notification.notify --sender YOUR_EMAIL --receiver TARGET_EMAIL --database_path notion
read your google password from file to provide in send_email.py
- Storing the highlights in common database
- Sending random email on the start of the system
- Initial cleanup after export from Onyx, first line of .txt