r/Notion • • Sep 11 '20

Template I wrote a Python script to export all the clippings, notes or highlights from a Kindle to a page in Notion. Just run this script whenever you plug in your Kindle device to your PC and your Notion page will get updated with the changes.

https://github.com/paperboi/kindle2notion
34 Upvotes

8 comments sorted by

2

u/coffdensen Sep 11 '20

Dude this is BRILLIANT!! I should be leaving for work but I can't get over what a great idea this is. Thank you!

1

u/thedullblackwall Sep 11 '20

Thanks, hope you will find it useful :)

1

u/NonultraAndu Dec 01 '20

I was really looking for something like this; thanks for sharing!!!!

I'm trying it now and I get the error below. Can you help please?

Traceback (most recent call last):

File "/Users/xxx/Documents/Development/Kindle2Notion/kindle2notion.py", line 242, in <module>

ch = KindleClippings(CLIPPINGS_FILE)

File "/Users/xxx/Documents/Development/Kindle2Notion/kindle2notion.py", line 13, in __init__

self.clippings = self._getAllClippings(clippingsFile)

File "/Users/xxx/Documents/Development/Kindle2Notion/kindle2notion.py", line 18, in _getAllClippings

return self._parseClippings(allClippings)

File "/Users/xxx/Documents/Development/Kindle2Notion/kindle2notion.py", line 110, in _parseClippings

page, addedOn = eachClipping[1].strip().split('|')

ValueError: too many values to unpack (expected 2)

1

u/thedullblackwall Jan 02 '21

Hi, sorry for the late response. Perhaps it may have to do with one of your clippings having a line which does not come under any of the existing use cases accounted for. Can you please raise an issue on the Github repo? And may I know what model of Kindle you use for reference? Along with a copy of your MyClippings.txt (if that's not okay with you).

2

u/CuddlyToaster Sep 18 '20

You Sir is doing God's work!

2

u/[deleted] Sep 11 '20

[removed] — view removed comment

1

u/thedullblackwall Sep 11 '20

Thanks, will check out Cortex! I'm mostly only familiar with his YouTube content.