Jump to content

Tip: how to export a list of tags (Evernote Mac)


Recommended Posts

Just sharing this useful tip for exporting a list of tags:

Setup

Open Terminal.app and paste in this line

sudo easy_install pip

Hit enter, then paste in this line:
pip install evernote

Note: it may require sudo pip install evernote if you already had pip and had just launched the Terminal.

Hit enter.

Get a developer token here:
https://www.evernote.com/api/DeveloperToken.action

 

Ready to go

You'll need a text editor that can run Python scripts. I used TextMate.

Open the attached script in TextMate or copy paste this into a new file:

from evernote.api.client import EvernoteClient
#setup Evernote Client
client=EvernoteClient(token="[YOUR TOKEN HERE]", sandbox=False)
#get note store object to call listTags, listTagsByNotebook, and listNotebooks on
noteStore=client.get_note_store()

tags=noteStore.listTags() #get list of all tags
allTags = [tag.name for tag in tags] #put all the names of the tags in a list

#print tags
for tag in allTags:
   print("%s"%tag)
print("")

on line 3 replace [YOUR TOKEN HERE] with your developer token.

Type ⌘R to run the script.

Bingo!

evernote_tags.py.zip

Link to comment
  • Level 5*
22 minutes ago, Simbasounds said:

Just sharing this useful tip for exporting a list of tags:

There's always applescript command          tell application "Evernote" set TagList to tags
I'd want to add some code to sort TagList and do some formatting
Perhaps save the result as a note in Evernote

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...