Last active
September 15, 2017 05:07
-
-
Save lhsfcboy/11e2673f0cda4605f170c5f7f4300246 to your computer and use it in GitHub Desktop.
quick demo of itchat
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
import itchat | |
itchat.auto_login(enableCmdQR = 2,hotReload = True) | |
itchat.send('Hello, filehelper', toUserName='filehelper') |
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
In [5]: users = itchat.search_friends(name = 'XX深蓝') | |
In [7]: users[0] | |
Out[7]: <User: | |
{'VerifyFlag': 0, | |
'ContactFlag': 1, | |
'Province': '山东', | |
'Uin': 742102260, | |
'City': '泰安', | |
'ChatRoomId': 0, | |
'KeyWord': 'lhs', | |
'StarFriend': 0, | |
'Signature': '就是那个深蓝', | |
'Alias': '', | |
'PYInitial': 'SL', | |
'HeadImgUrl': '/cgi-bin/mmwebwx-bin/webwxgeticon?seq=62XX0&username=@XXXX7f8c81a8c2621835bf4b46d6ee7c&skey=@crypt_2e2d9cca_6325c12ac2032632a98d682fdb9d2364', | |
'Sex': 1, | |
'Statues': 0, | |
'WebWxPluginSwitch': 0, | |
'PYQuanPin': 'shenlan', | |
'MemberList': <ContactList: []>, | |
'UserName': '@XX1b7f8c81a8c2621835bf4b46d6ee7c', | |
'HeadImgFlag': 1, | |
'MemberCount': 0, | |
'RemarkName': '', | |
'AppAccountFlag': 0, | |
'EncryChatRoomId': '', | |
'RemarkPYInitial': '', | |
'IsOwner': 0, | |
'AttrStatus': 67223559, | |
'DisplayName': '', | |
'RemarkPYQuanPin': '', | |
'UniFriend': 0, | |
'SnsFlag': 49, | |
'NickName': '深蓝', | |
'HideInputBarFlag': 0, | |
'OwnerUin': 0}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment