安装
pip3 install itchat
Python学习资料或者需要代码、视频加Python学习群:960410445
主要用到的方法:
itchat.login() 微信扫描二维码登录
itchat.get_friends() 返回完整的好友列表,每个好友为一个字典, 其中第一项为本人的账号信息,传入update=True, 将更新好友列表并返回, get_friends(update=True)
itchat.get_head_img(userName="") 根据userName获取好友头像
微信好友头像拼接图
Python代码
获取头像
头像拼接图
性别统计图
个性签名统计图