run python function as daemon

simply wrap it with threading.

Read more

common key words from emails

分词,集合,交集。reduce((lambda x,y:list(set(x)&set(y))),(a,b,c))

Read more

gmail create/delete mail box in batch

thank twisted.

Read more

python snippets

as subject.

Read more

convert .py & .py.html to email format

as subject.

Read more

search gmail box

 FPNP p265.

Read more

examine gmail box

FPNP p241

Read more

list gmail box in twisted python

FPNP, page 236

Read more

gmail, login, python, twisted

as title. FPNP page 228.

Read more

python download url data

To download something in python, it is good to use urllib2.Request other than urllib2.urlopen. the reason is, the former can handle 302 redirection automatically. the core part of che code is as below.

Read more