2/14/2018 - 10:16 PM

Add Text Files as Google Keep Notes

Add Text Files as Google Keep Notes

#Import a directory of text files as google keep notes.
#Text Filename is used for the title of the note.

import gkeepapi, os

username = ''
password = 'your app password'

keep = gkeepapi.Keep()
success = keep.login(username,password)
dir_path = os.path.dirname(os.path.realpath(__file__))
for fn in os.listdir(dir_path):
	if os.path.isfile(fn) and fn.endswith('.txt'):
		with open(fn, 'r') as mf:
			keep.createNote(fn.replace('.txt',''), data)