Skip to content

Instantly share code, notes, and snippets.

View muzizongheng's full-sized avatar

muzizongheng(李建功) muzizongheng

View GitHub Profile
@muzizongheng
muzizongheng / AccessEN.py
Created June 27, 2013 07:29
Parse evernote's note(include resource, content, title, tags)
#
# A simple Evernote API demo script that lists all notebooks in the user's
# account and creates a simple test note in the default notebook.
#
# Before running this sample, you must fill in your Evernote developer token.
#
# To run (Unix):
# export PYTHONPATH=../lib; python EDAMTest.py
#
@muzizongheng
muzizongheng / EDAMTest2.py
Created June 27, 2013 01:07
open file by utf-8
f = open(n.title+".html", "w+", encoding='utf-8-sig')
f.write(content)
f.close()
@muzizongheng
muzizongheng / EDAMTest_GetNotes.py
Created June 25, 2013 08:09
use evernote api to get every note(include: tilte, content, resource)
# List all of the notebooks in the user's account
notebooks = noteStore.listNotebooks(authToken)
print("Found ", len(notebooks), " notebooks:")
for notebook in notebooks:
print(" * ", notebook.name)
filter = NoteStore.NoteFilter()
filter.notebookGuid = notebook.guid
noteList = noteStore.findNotes(authToken, filter, 0, 50)
@muzizongheng
muzizongheng / myFirstCodeSnippet
Created June 19, 2013 06:16
my first code snippet
public myFirstCodeSnippet
{
string Test {get; set;}
}