Automatically Form clipping in Kindle into a formatted note with Notion
Trying to make Reading Notes with Notion based on the contents in Kindle's clipping but unwilling to waste time on searching words and copying sentences, I stretch myself to get related knowledge and code a scipt in Python to make it automatic.
-
Download the Notion-English-ReadingNote repository
-
Connect your Kindle and Computer using an USB cable
-
Replace the notion page address in
notionNote.py
line 23page = client.get_collection_view("<Your page address>")
-
Run
notion.py
And Check the content -
Great ! A note has been made😇
- Get contents from Kindle
No matter whether you mark a word or a sentence in your kindle, it will add some words to a file
My Clipping.txt
in your Kindle (note_path='/Volumes/Kindle/documents/My Clippings.txt'
), conforming to following form (5 lines).So it is for us to abstract the note we want.Book Name Pages | Date word/sentence you have marked =========
Except for getting the contents:
- Divide the content into words/phrases and sentences stored in
words
andsentences
- Delete all contents in
My Clipping.txt
when running the scipt assuming that I will note with notion as soon as having read an article.
( Referring to loadclip.py for details )
- Find the sense for words
I code a simple python-spider to get sense from YoudaoDic web site.
( Referring to getMean.py for details ) - Add a new note to the Table in Notion.
For this part, I use a package notion-py. It's comprehensible to treat a notion page as atree
.
( Referring to notionNote.py for details )
Welcome to Try and Give advice !