Created
July 1, 2013 06:39
-
-
Save muzizongheng/5898792 to your computer and use it in GitHub Desktop.
convert evernote's tags to blog's categories
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
#create blog category by tags | |
tagslist = noteStore.listTagsByNotebook(authToken, notebook.guid) | |
categories = convertTags2Category(tagslist) | |
try: | |
for c in categories: | |
metaweblog.new_category(c) | |
except Exception as err: | |
print("Create category failed: ", err) | |
finally: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment