export - How can I backup unused Evernote tags? -
i use gtd-based system in evernote, in each project has tag. of projects inactive, , have no 'next action' - i.e tag has no notes attached. accidentally clicked delete unused account tags
last night, , none of backups have lost data; sad bunny.
how can backup these unused tags in future? i'd prefer enex, happy e.g. plain-text list of names.
i using evernote's 'export' menu-option, - turns out - exports notes , tags, not unused tags. i've tried enscript.exe (enscript exportnotes /q any:
) , same: notes & tags, no other tags. thing left me try installing sdk , 'rolling own' call notestore.listtags - can't work, given previous 2 results.
is there way export unused tags evernote? can api it?
yes, can, through api. use listtags
method tags in evernote account, list tags "attached" note , tags not "attached" note. can compare notes "attached" notes calling listtagsbynotebook
on every notebook (you can list of notebooks calling listnotebooks
method). evernote's cloud api different local scripting apis (i.e applescript , vbscript)
listtags
documentation
listnotebooks
documentation
listtagsbynotebook
documentation
example below in python:
evernote.api.client import evernoteclient #setup evernote client client=evernoteclient(token="s=s432:u=489be66:e=1545a0ad962:c=14d0259ad08:p=1cd:a=en-devtoken:v=2:h=e3e3c9ea30c6879c54918794fad333ae", sandbox=false) #get note store object call listtags, listtagsbynotebook, , listnotebooks on notestore=client.get_note_store() tags=notestore.listtags() #get list of tags alltags = [tag.name tag in tags] #put names of tags in list #get list of notebooks notebooks = notestore.listnotebooks() #get tags each notebook , store them in list attachedtags = [] notebook in notebooks: notebooktaglist = notestore.listtagsbynotebook(notebook.guid) notebooktagnames = [tag.name tag in notebooktaglist] attachedtags+=notebooktagnames #compare lists , print "unattached" tags print("\nthe following list of \"unattached\" tag names in evernote account:") tag in alltags: if tag not in attachedtags: print(" *%s"%tag) print("")
you can developer token production account (evernote has sandbox developers too) here: https://www.evernote.com/api/developertoken.action
evernote sdks on github: https://github.com/evernote
documentation at: https://dev.evernote.com
api reference: https://dev.evernote.com/doc/reference
Comments
Post a Comment