Last active
October 19, 2018 05:16
-
-
Save amorist/ac96c39f73d0438e93be048b716a9292 to your computer and use it in GitHub Desktop.
My Clippings.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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