python与微信

时间:2018-09-24 11:24:54   收藏:0   阅读:184
pip3 install itchat

主要用到的方法:

itchat.login() 微信扫描二维码登录

itchat.get_friends() 返回完整的好友列表,每个好友为一个字典, 其中第一项为本人的账号信息,传入update=True, 将更新好友列表并返回, get_friends(update=True)

itchat.get_head_img(userName="") 根据userName获取好友头像

微信好友头像拼接图

技术分享图片

 

Python代码

获取头像

技术分享图片

 

头像拼接图

技术分享图片

 

性别统计图

技术分享图片

 

技术分享图片

 

个性签名统计图

技术分享图片

 

技术分享图片
评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!