Skip to content

Instantly share code, notes, and snippets.

@amorist
Last active October 19, 2018 05:16
Show Gist options
  • Save amorist/ac96c39f73d0438e93be048b716a9292 to your computer and use it in GitHub Desktop.
Save amorist/ac96c39f73d0438e93be048b716a9292 to your computer and use it in GitHub Desktop.
My Clippings.txt
note_path='/Volumes/Kindle/documents/My Clippings.txt'
f=open(note_path,'r+')
digest_path='/Users/amor/Documents/'
while True:
onenote=[]
for i in range(0,5):
line=f.readline()
if not line:
exit()
onenote.append(line)
book_note=open('%s%s.txt'%(digest_path,onenote[0]),'a+')
book_note.write(onenote[3]+'\n')
book_note.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment