清理微信僵尸好友可以通过以下几种方法实现,这里以使用Python和itchat模块为例:
使用itchat模块
安装itchat模块:`pip install itchat`
创建一个Python文件,例如`wechat_clear.py`,并输入以下代码:
import itchatimport time登录微信@itchat.msg_register([itchat.content.TEXT], isGroupChat=True)def text_reply(msg):group_name = msg['User']['NickName']发送特殊字符到群聊,检查是否有人已删除你for friend in itchat.get_friends(update=True):try:itchat.send_text(f'特殊字符', toUserName=friend['NickName'])except:print(f'{friend["NickName"]} 删除了你')运行程序itchat.auto_login(hotReload=True)print('检测结果请在手机上查看,此处仅显示检测信息。')print('消息被拒收为被拉黑,需要发送验证信息为被删。')print('没有结果就是好结果。')print('检测1000位好友需要34分钟, 以此类推。')print('为了你的账号安全着想,这个速度刚好。')print('在程序运行期间请让程序保持运行,网络保持连接。')print('请不要从手机端手动退出。')input('按ENTER键继续...')
运行脚本,根据提示操作,登录微信并等待程序检测。

使用wxpy模块
安装wxpy模块:`pip3 install wxpy`
下载`wechat_clear.py`脚本:
curl -fsSL https://raw.githubusercontent.com/ruicky/python-awsome/master/wechat_clear/wechat_clear.py -o wechat_clear.py
执行脚本:
python wechat_clear.py
根据提示扫描二维码登录微信,开始检测僵尸好友。
请注意,这些方法可能会对微信账号的安全性造成一定风险,请谨慎操作,并确保遵循微信的使用条款。
