下面是代碼:
from wxpy import *
import time
print("本軟件采用特殊字符檢測,即對方收不到任何信息!")
print("或許某個版本微信就會修復該字符了,不作通知哈!")
print("軟件編寫日期:2019-2-20!")
input("任意鍵繼續...(非電源鍵)")
try:
bot = Bot()#機器人對象
all_friends = bot.friends()#把微信所有好友放進列表
for i in all_friends:
try:
print("檢測 "+i.name+" 中...")#如果好友備注有表情這句會報錯,所以報錯直接跳過
except:
pass
try:
i.send('జ్ఞ ా')#發送檢測字符
except:
pass
time.sleep(2) #延時防頻繁
bot.file_helper.send('檢測結束,請退出網頁微信!')#通過文件傳輸助手發送檢測結束
bot.logout()
input("檢測結束,任意鍵退出...")
except KeyError:#這個錯誤是因為微信官方封禁了這個微信號登陸網頁微信的接口
print("該微信暫時不能登錄網頁微信!")
input("檢測失敗,任意鍵退出...")
運行代碼后直接回車就會彈出登陸二維碼,掃碼登陸就可以了
程序就會自動檢測所有好友了

然后手機上就可以看到傷心的一幕了:

