xiaohe520
#!/usr/bin/python
#coding=utf8 
# 自行下载微信模块 itchat  小和QQ496631085
import itchat,os
itchat.auto_login()
# 可以自行看有什么数据
# print(itchat.get_friends(update=True))
for friend in itchat.get_friends(update=True)[0:]:
    #可以用此句print查看好友的微信名、备注名
    # print(friend[\'NickName\']+"("+friend[\'RemarkName\']+")")
    img = itchat.get_head_img(userName=friend["UserName"])
    path = friend[\'NickName\']+".jpg"
    try:
        with open(path,\'wb\') as f:
            f.write(img)
    except Exception as e:
        print(repr(e))

 此次是需要用头像,就登录了自己的然后批量下载了,然后干其他用了,次代码仅供学习参考,进制非法使用

分类:

技术点:

相关文章:

  • 2021-08-13
  • 2021-04-23
  • 2021-11-17
  • 2022-01-23
  • 2021-05-16
  • 2021-09-21
  • 2021-12-19
  • 2021-05-20
猜你喜欢
  • 2021-06-02
  • 2022-12-23
  • 2021-11-10
  • 2021-12-15
  • 2021-11-13
  • 2021-10-13
  • 2021-11-28
相关资源
相似解决方案