#coding=utf8
import itchat

itchat.auto_login(True)

sincere_wish = u'祝%s新年快乐！'

friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
	print( (friend['DisplayName'] or friend['NickName']), friend['UserName'])
	# itchat.send(SINCERE_WISH % (friend['DisplayName'] or friend['NickName']), friend['UserName'])

17d1c075d3a330332ab43efe0a0f0ab82ecbd560
<mask token>

<mask token>
itchat.auto_login(True)
<mask token>
for friend in friendList:
    print(friend['DisplayName'] or friend['NickName'], friend['UserName'])

<mask token>
itchat.auto_login(True)
sincere_wish = u'祝%s新年快乐！'
friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
    print(friend['DisplayName'] or friend['NickName'], friend['UserName'])

import itchat
itchat.auto_login(True)
sincere_wish = u'祝%s新年快乐！'
friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
    print(friend['DisplayName'] or friend['NickName'], friend['UserName'])

#coding=utf8
import itchat

itchat.auto_login(True)

sincere_wish = u'祝%s新年快乐！'

friendList = itchat.get_friends(update=True)[1:]
for friend in friendList:
	print( (friend['DisplayName'] or friend['NickName']), friend['UserName'])
	# itchat.send(SINCERE_WISH % (friend['DisplayName'] or friend['NickName']), friend['UserName'])
